1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

move freeing code before exiting because of signal

Originally committed as revision 18485 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-04-13 03:47:12 +00:00
parent 3b80107596
commit 5973490a8f

View File

@ -427,6 +427,11 @@ static int av_exit(int ret)
powerpc_display_perf_report();
#endif /* CONFIG_POWERPC_PERF */
for (i=0;i<CODEC_TYPE_NB;i++)
av_free(avcodec_opts[i]);
av_free(avformat_opts);
av_free(sws_opts);
if (received_sigterm) {
fprintf(stderr,
"Received signal %d: terminating.\n",
@ -434,11 +439,6 @@ static int av_exit(int ret)
exit (255);
}
for (i=0;i<CODEC_TYPE_NB;i++)
av_free(avcodec_opts[i]);
av_free(avformat_opts);
av_free(sws_opts);
exit(ret); /* not all OS-es handle main() return value */
return ret;
}