forked from enlightenment/efl
Fix leak of fd handle reported by Coverity
NB: Fixes Coverity CID1039288 Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
18a9719003
commit
93fc18daf2
|
@ -6129,6 +6129,7 @@ push_parse_file(cpp_reader * pfile, const char *fname)
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
cpp_perror_with_name(pfile, pend->arg);
|
cpp_perror_with_name(pfile, pend->arg);
|
||||||
|
if (f) close(f);
|
||||||
return FATAL_EXIT_CODE;
|
return FATAL_EXIT_CODE;
|
||||||
}
|
}
|
||||||
cpp_push_buffer(pfile, NULL, 0);
|
cpp_push_buffer(pfile, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue