projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71cb2c8
)
Missing fclose()
author
Carl Hetherington
<cth@carlh.net>
Fri, 19 Jul 2013 23:25:04 +0000
(
00:25
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 19 Jul 2013 23:25:04 +0000
(
00:25
+0100)
src/lib/dcp_video_frame.cc
patch
|
blob
|
history
diff --git
a/src/lib/dcp_video_frame.cc
b/src/lib/dcp_video_frame.cc
index 34b5ece291213019a910d0f4dfc564793a787ecc..b8b5ea76d24ad4830ed89b3bd2550a099d99ac1d 100644
(file)
--- a/
src/lib/dcp_video_frame.cc
+++ b/
src/lib/dcp_video_frame.cc
@@
-265,6
+265,7
@@
EncodedData::EncodedData (string file)
size_t const r = fread (_data, 1, _size, f);
if (r != size_t (_size)) {
+ fclose (f);
throw FileError (_("could not read encoded data"), file);
}