From 0cecaa9e2edfa4fb198a70a175a039d0b6b2f845 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Sun, 3 Feb 2013 02:45:41 +0100
Subject: [PATCH] ffmpeg: free attachments, fix memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 ffmpeg_opt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index a418e861675..4f320b9b29b 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -126,6 +126,7 @@ static void uninit_options(OptionsContext *o, int is_input)
     av_freep(&o->stream_maps);
     av_freep(&o->audio_channel_maps);
     av_freep(&o->streamid_map);
+    av_freep(&o->attachments);
 
     if (is_input)
         recording_time = o->recording_time;
-- 
GitLab