diff options
author | Andi-Bogdan Postelnicu <[email protected]> | 2016-04-12 13:07:18 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-04-12 13:08:58 +0200 |
commit | 86aa9cb8e5152361b55f3207ffae5e0e6b1f1b4f (patch) | |
tree | 2ccda8194cdb4d3fbec96e9b0ef86fb53244d383 /test/test_resampler.cpp | |
parent | 55afd4e682c25b1fc0509b0c75144ed6b3c7da1d (diff) | |
download | cubeb-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.cpp | 1 |
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); } |