forked from enlightenment/efl
Fix memleak reported by Coverity: Close the descriptor returned by
popen if we are going to error out. NB: Fixes Coverity CID1039184 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
aeb4b7f7b9
commit
57924e5824
|
@ -462,6 +462,7 @@ efreet_menu_kde_legacy_init(void)
|
|||
if (!fgets(buf, sizeof(buf), f))
|
||||
{
|
||||
ERR("Error initializing KDE legacy information");
|
||||
pclose(f);
|
||||
return 0;
|
||||
}
|
||||
s = buf;
|
||||
|
|
Loading…
Reference in New Issue