Commit 62e49376 authored by bcoudurier's avatar bcoudurier

move freeing code before exiting because of signal

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18485 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 816a96c0
...@@ -427,6 +427,11 @@ static int av_exit(int ret) ...@@ -427,6 +427,11 @@ static int av_exit(int ret)
powerpc_display_perf_report(); powerpc_display_perf_report();
#endif /* CONFIG_POWERPC_PERF */ #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) { if (received_sigterm) {
fprintf(stderr, fprintf(stderr,
"Received signal %d: terminating.\n", "Received signal %d: terminating.\n",
...@@ -434,11 +439,6 @@ static int av_exit(int ret) ...@@ -434,11 +439,6 @@ static int av_exit(int ret)
exit (255); 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 */ exit(ret); /* not all OS-es handle main() return value */
return ret; return ret;
} }
......
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