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:
Chris Michael 2013-07-08 11:25:59 +01:00
parent aeb4b7f7b9
commit 57924e5824
1 changed files with 1 additions and 0 deletions

View File

@ -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;