OSDN Git Service

free options contexts in av_exit, valgrind should be happy now
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 13 Apr 2009 03:43:29 +0000 (03:43 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 13 Apr 2009 03:43:29 +0000 (03:43 +0000)
Originally committed as revision 18484 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index d7c9059..e908561 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -434,6 +434,11 @@ 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;
 }