From f5eb2b653f01bbb633c0543a2025c172e1a1cbe3 Mon Sep 17 00:00:00 2001
From: Benoit Fouet <benoit.fouet@free.fr>
Date: Wed, 25 Apr 2007 12:19:56 +0000
Subject: [PATCH] to complete r8807: free vstats resources

Originally committed as revision 8808 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 ffmpeg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 575a4f792e0..751ba08149e 100644
--- 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
-- 
GitLab