[FFmpeg-cvslog] avfilter/can_merge_formats: fix memleak

Michael Niedermayer git at videolan.org
Thu Jul 25 17:15:52 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 25 16:54:04 2013 +0200| [de0a1f63dff904fc30361e793400b7b9e427e31d] | committer: Michael Niedermayer

avfilter/can_merge_formats: fix memleak

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de0a1f63dff904fc30361e793400b7b9e427e31d
---

 libavfilter/avfiltergraph.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 2f6f2fd..3bb5047 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
     }
     if (ret) {
         av_freep(&ret->formats);
+        av_freep(&ret->refs);
         av_freep(&ret);
         return 1;
     } else {



More information about the ffmpeg-cvslog mailing list