aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-08-06 21:49:03 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-08-06 21:49:03 +0300
commitd4005247812dc31069fb2d28098e68e44a18e82c (patch)
treeee366972d50f53e7dd01629ecaf06755f3d7ac84
parent55759e4aa990a9755e29f35a4aec6c0a6e89c7d7 (diff)
downloadmeson-d4005247812dc31069fb2d28098e68e44a18e82c.zip
meson-d4005247812dc31069fb2d28098e68e44a18e82c.tar.gz
meson-d4005247812dc31069fb2d28098e68e44a18e82c.tar.bz2
Fix a few resource leaks in a fit of OCD.
-rw-r--r--test cases/common/29 pipeline/srcgen.c1
-rw-r--r--test cases/common/30 pipeline/src/srcgen.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/test cases/common/29 pipeline/srcgen.c b/test cases/common/29 pipeline/srcgen.c
index 4d18318..8095724 100644
--- a/test cases/common/29 pipeline/srcgen.c
+++ b/test cases/common/29 pipeline/srcgen.c
@@ -26,6 +26,7 @@ int main(int argc, char **argv) {
ofile = fopen(ofilename, "w");
if(!ofile) {
fprintf(stderr, "Could not open target file %s\n", ofilename);
+ fclose(ifile);
return 1;
}
bytes = fread(arr, 1, ARRSIZE, ifile);
diff --git a/test cases/common/30 pipeline/src/srcgen.c b/test cases/common/30 pipeline/src/srcgen.c
index c4f4b87..26761d2 100644
--- a/test cases/common/30 pipeline/src/srcgen.c
+++ b/test cases/common/30 pipeline/src/srcgen.c
@@ -26,6 +26,7 @@ int main(int argc, char **argv) {
ofile = fopen(ofilename, "w");
if(!ofile) {
fprintf(stderr, "Could not open target file %s\n", ofilename);
+ fclose(ifile);
return 1;
}
bytes = fread(arr, 1, ARRSIZE, ifile);