From: Tim-Philipp Müller Date: Mon, 30 Dec 2013 13:32:14 +0000 (+0000) Subject: testsuite: fix file descriptor leak in benchmorc X-Git-Tag: orc-0.4.19~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=875692805a71ea217794f110c29a58bcbb664999;p=platform%2Fupstream%2Forc.git testsuite: fix file descriptor leak in benchmorc Coverity CID 1147543 --- diff --git a/testsuite/benchmorc/benchmorc.c b/testsuite/benchmorc/benchmorc.c index c1a92e6..0703b6e 100644 --- a/testsuite/benchmorc/benchmorc.c +++ b/testsuite/benchmorc/benchmorc.c @@ -106,6 +106,7 @@ read_file (const char *filename) contents[size] = 0; + fclose (file); return contents; bail: /* something failed */