[MPlayer-cvslog] r36652 - trunk/libmenu/menu_filesel.c
reimar
subversion at mplayerhq.hu
Sun Jan 19 23:24:47 CET 2014
Author: reimar
Date: Sun Jan 19 23:24:47 2014
New Revision: 36652
Log:
menu_filesel: Fix memory leak in case of readdir error.
Modified:
trunk/libmenu/menu_filesel.c
Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c Sun Jan 19 23:24:46 2014 (r36651)
+++ trunk/libmenu/menu_filesel.c Sun Jan 19 23:24:47 2014 (r36652)
@@ -316,6 +316,7 @@ bailout:
if (n < 0) {
mp_msg(MSGT_GLOBAL,MSGL_ERR,MSGTR_LIBMENU_ReaddirError,strerror(errno));
+ free(namelist);
return 0;
}
qsort(namelist, n, sizeof(char *), compare);
More information about the MPlayer-cvslog
mailing list