aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mp4v2/files/patch-util-mp4chaps.cpp
blob: f20a842e01160b89c0d599b4c75478eff1b16b1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- util/mp4chaps.cpp.orig	2012-05-20 22:11:55 UTC
+++ util/mp4chaps.cpp
@@ -856,6 +856,7 @@ ChapterUtility::readChapterFile( const s
     if( in.read( inBuf, fileSize, nin ) )
     {
         in.close();
+        free(inBuf);
         return herrf( "reading chapter file '%s' failed: %s\n", filename.c_str(), sys::getLastErrorStr() );
     }
     in.close();