summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2013-12-30 13:32:14 +0000
committerTim-Philipp Müller <tim@centricular.com>2013-12-30 13:32:14 +0000
commit875692805a71ea217794f110c29a58bcbb664999 (patch)
treeba639e576f3fe7a2a9939f32bd2d8ea5d3d39154
parent07c01cafbbfd4c18bd63f644946fd6ce7b384280 (diff)
testsuite: fix file descriptor leak in benchmorc
Coverity CID 1147543
-rw-r--r--testsuite/benchmorc/benchmorc.c1
1 files changed, 1 insertions, 0 deletions
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 */