From: Vincent Penquerc'h Date: Mon, 7 Apr 2014 09:51:51 +0000 (+0100) Subject: Fix FILE leak X-Git-Tag: orc-0.4.19~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84afb34e5df5fb681f5d3875b8816a52b4edaa56;p=platform%2Fupstream%2Forc.git Fix FILE leak Coverity 1147011 --- diff --git a/testsuite/compile_parse.c b/testsuite/compile_parse.c index 59b144f..572b681 100644 --- a/testsuite/compile_parse.c +++ b/testsuite/compile_parse.c @@ -84,6 +84,7 @@ read_file (const char *filename) if (ret < 0) goto bail; contents[size] = 0; + fclose (file); return contents; bail: