]> git.openpandora.org Git - pandora-libraries.git/commitdiff
is_dir_empty() leaking fd's; notaz found it :)
authorskeezix <skeezix@flotsam-vm.(none)>
Fri, 4 Jun 2010 00:41:14 +0000 (20:41 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Fri, 4 Jun 2010 00:41:14 +0000 (20:41 -0400)
minimenu/mmenu.c

index 01a7341143d0b20a7ae5bbc6283b2fa906a84257..0a53ef3eedf540cd258192056d6ae254a060b8a3 100644 (file)
@@ -377,6 +377,7 @@ static unsigned int is_dir_empty ( char *fullpath ) {
       // irrelevent
     } else {
       // something else came in, so dir must not be empty
+      closedir ( d );
       return ( 0 ); 
     }