Commit befd4d38 authored by mstorsjo's avatar mstorsjo

qt-faststart: Avoid leaking memory if encountering a file with double ftyp atoms


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23065 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4e53af68
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment