Missing fclose()
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 23:25:04 +0000 (00:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jul 2013 23:25:04 +0000 (00:25 +0100)
src/lib/dcp_video_frame.cc

index 34b5ece291213019a910d0f4dfc564793a787ecc..b8b5ea76d24ad4830ed89b3bd2550a099d99ac1d 100644 (file)
@@ -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);
        }