зеркало из https://github.com/mozilla/cubeb.git
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
This commit is contained in:
Родитель
55afd4e682
Коммит
86aa9cb8e5
|
@ -93,7 +93,6 @@ void dump(const char * name, T * frames, size_t count)
|
||||||
|
|
||||||
if (count != fwrite(frames, sizeof(T), count, file)) {
|
if (count != fwrite(frames, sizeof(T), count, file)) {
|
||||||
fprintf(stderr, "error writing to %s\n", name);
|
fprintf(stderr, "error writing to %s\n", name);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче