[FFmpeg-devel] [PATCH] avfilter/palettegen/RFC: fix mem leak
Clément Bœsch
u at pkh.me
Fri Feb 27 07:39:49 CET 2015
I don't understand why I need to do that. The free is already present in
the uninit, and before every update of the prev_frame update.
---
libavfilter/vf_palettegen.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index fa8cc12a..bb22196 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -507,6 +507,7 @@ static int request_frame(AVFilterLink *outlink)
if (r == AVERROR_EOF && !s->palette_pushed) {
r = ff_filter_frame(outlink, get_palette_frame(ctx));
s->palette_pushed = 1;
+ av_frame_free(&s->prev_frame);
return r;
}
return r;
--
2.3.0
More information about the ffmpeg-devel
mailing list