Browse code

Remove unnecessary checks before calling free

Feel free to revert if you can specify a concrete case where this actually
is necessary.

Originally committed as revision 23006 to svn://svn.ffmpeg.org/ffmpeg/trunk

Martin Storsjö authored on 2010/05/02 06:02:23
Showing 1 changed files
... ...
@@ -310,7 +310,6 @@ int main(int argc, char *argv[])
310 310
     fclose(infile);
311 311
     fclose(outfile);
312 312
     free(moov_atom);
313
-    if (ftyp_atom_size > 0)
314 313
         free(ftyp_atom);
315 314
 
316 315
     return 0;
... ...
@@ -319,7 +318,6 @@ error_out:
319 319
     fclose(infile);
320 320
     fclose(outfile);
321 321
     free(moov_atom);
322
-    if (ftyp_atom_size > 0)
323 322
         free(ftyp_atom);
324 323
     return 1;
325 324
 }