[mp4v2] r503 committed - fix a memory leak identified by static code analysis in mp4chaps.cpp; ...

27 views
Skip to first unread message

mp...@googlecode.com

unread,
May 13, 2013, 6:00:33 PM5/13/13
to mp...@googlegroups.com
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();
Reply all
Reply to author
Forward
0 new messages