testsuite: fix file descriptor leak in benchmorc
authorTim-Philipp Müller <tim@centricular.com>
Mon, 30 Dec 2013 13:32:14 +0000 (13:32 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 30 Dec 2013 13:32:14 +0000 (13:32 +0000)
Coverity CID 1147543

testsuite/benchmorc/benchmorc.c

index c1a92e6..0703b6e 100644 (file)
@@ -106,6 +106,7 @@ read_file (const char *filename)
 
   contents[size] = 0;
 
+  fclose (file);
   return contents;
 bail:
   /* something failed */