[FFmpeg-cvslog] r23190 - in branches/0.6: . tools/qt-faststart.c
siretart
subversion
Wed May 19 15:51:55 CEST 2010
Author: siretart
Date: Wed May 19 15:51:54 2010
New Revision: 23190
Log:
qt-faststart: Avoid leaking memory if encountering a file with double ftyp atoms
backport r23065 by mstorsjo
Modified:
branches/0.6/ (props changed)
branches/0.6/tools/qt-faststart.c
Modified: branches/0.6/tools/qt-faststart.c
==============================================================================
--- branches/0.6/tools/qt-faststart.c Wed May 19 15:43:34 2010 (r23189)
+++ branches/0.6/tools/qt-faststart.c Wed May 19 15:51:54 2010 (r23190)
@@ -116,6 +116,7 @@ int main(int argc, char *argv[])
/* keep ftyp atom */
if (atom_type == FTYP_ATOM) {
ftyp_atom_size = atom_size;
+ free(ftyp_atom);
ftyp_atom = malloc(ftyp_atom_size);
if (!ftyp_atom) {
printf ("could not allocate %"PRIu64" byte for ftyp atom\n",
More information about the ffmpeg-cvslog
mailing list