Revision: 503
Author:
kid...@gmail.com
Date: Mon May 13 15:00:14 2013
Log: fix a memory leak identified by static code analysis in
mp4chaps.cpp; inBuf not free'd in the event of an error
http://code.google.com/p/mp4v2/source/detail?r=503
Modified:
/trunk/util/mp4chaps.cpp
=======================================
--- /trunk/util/mp4chaps.cpp Fri Mar 9 22:48:40 2012
+++ /trunk/util/mp4chaps.cpp Mon May 13 15:00:14 2013
@@ -856,6 +856,7 @@
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();