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 01a7341..0a53ef3 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 ); 
     }