From: skeezix Date: Fri, 4 Jun 2010 00:41:14 +0000 (-0400) Subject: is_dir_empty() leaking fd's; notaz found it :) X-Git-Tag: sz_beta3~156 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=f65146707b02d9fbe07c8f9d3a0b84efbc2f400d is_dir_empty() leaking fd's; notaz found it :) --- diff --git a/minimenu/mmenu.c b/minimenu/mmenu.c index 01a7341..0a53ef3 100644 --- a/minimenu/mmenu.c +++ b/minimenu/mmenu.c @@ -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 ); }