From 93fc18daf251203fd0cef96be04f0970e69fe0bd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 8 Jul 2013 13:07:18 +0100 Subject: [PATCH] Fix leak of fd handle reported by Coverity NB: Fixes Coverity CID1039288 Signed-off-by: Chris Michael --- 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 57e418806d..3d26cb5683 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);