devilhorns pushed a commit to branch master.

commit 93fc18daf251203fd0cef96be04f0970e69fe0bd
Author: Chris Michael <[email protected]>
Date:   Mon Jul 8 13:07:18 2013 +0100

    Fix leak of fd handle reported by Coverity
    
    NB: Fixes Coverity CID1039288
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/edje/epp/cpplib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/edje/epp/cpplib.c b/src/bin/edje/epp/cpplib.c
index 57e4188..3d26cb5 100644
--- a/src/bin/edje/epp/cpplib.c
+++ b/src/bin/edje/epp/cpplib.c
@@ -6129,6 +6129,7 @@ push_parse_file(cpp_reader * pfile, const char *fname)
             if (fd < 0)
               {
                  cpp_perror_with_name(pfile, pend->arg);
+                  if (f) close(f);
                  return FATAL_EXIT_CODE;
               }
             cpp_push_buffer(pfile, NULL, 0);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to