aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_resampler.cpp
diff options
context:
space:
mode:
authorAndi-Bogdan Postelnicu <[email protected]>2016-04-12 13:07:18 +0200
committerPaul Adenot <[email protected]>2016-04-12 13:08:58 +0200
commit86aa9cb8e5152361b55f3207ffae5e0e6b1f1b4f (patch)
tree2ccda8194cdb4d3fbec96e9b0ef86fb53244d383 /test/test_resampler.cpp
parent55afd4e682c25b1fc0509b0c75144ed6b3c7da1d (diff)
downloadcubeb-86aa9cb8e5152361b55f3207ffae5e0e6b1f1b4f.tar.gz
cubeb-86aa9cb8e5152361b55f3207ffae5e0e6b1f1b4f.zip
fclose the file in case of failure in fwrite in test_resampler.cpp.
Bug 1263872 - [Static Analysis][Resource leak] In function dump(...) from test_resampler.cpp
Diffstat (limited to 'test/test_resampler.cpp')
-rw-r--r--test/test_resampler.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/test_resampler.cpp b/test/test_resampler.cpp
index 4ba4723..fc3ecf8 100644
--- a/test/test_resampler.cpp
+++ b/test/test_resampler.cpp
@@ -93,7 +93,6 @@ void dump(const char * name, T * frames, size_t count)
if (count != fwrite(frames, sizeof(T), count, file)) {
fprintf(stderr, "error writing to %s\n", name);
- return;
}
fclose(file);
}