to complete r8807: free vstats resources
authorBenoit Fouet <benoit.fouet@free.fr>
Wed, 25 Apr 2007 12:19:56 +0000 (12:19 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Wed, 25 Apr 2007 12:19:56 +0000 (12:19 +0000)
Originally committed as revision 8808 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 575a4f7..751ba08 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3816,6 +3816,11 @@ int main(int argc, char **argv)
 
     av_free(intra_matrix);
     av_free(inter_matrix);
+
+    if (fvstats)
+        fclose(fvstats);
+    av_free(vstats_filename);
+
     av_free(opt_names);
 
 #ifdef CONFIG_POWERPC_PERF