[FFmpeg-devel,v3,1/3] libavfilter/vf_cover_rect.c: free the allocated frame

Submitted by lance.lmwang@gmail.com on June 11, 2019, 5:38 a.m.

Details

Message ID 20190611053844.21321-1-lance.lmwang@gmail.com
State New
Headers show

Commit Message

lance.lmwang@gmail.com June 11, 2019, 5:38 a.m.
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vf_cover_rect.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer June 11, 2019, 10:13 p.m.
On Tue, Jun 11, 2019 at 01:38:42PM +0800, lance.lmwang@gmail.com wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  libavfilter/vf_cover_rect.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

thanks

[...]

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c
index 41cd1a12b9..898debf09d 100644
--- a/libavfilter/vf_cover_rect.c
+++ b/libavfilter/vf_cover_rect.c
@@ -198,6 +198,7 @@  static av_cold void uninit(AVFilterContext *ctx)
 
     if (cover->cover_frame)
         av_freep(&cover->cover_frame->data[0]);
+    av_frame_free(&cover->cover_frame);
 }
 
 static av_cold int init(AVFilterContext *ctx)