Commit aa26f83b authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_join: fix possible memory leaks

Allocation of input frames is independent from
allocation of new input pads.
parent 9c317880
......@@ -207,9 +207,12 @@ static av_cold void join_uninit(AVFilterContext *ctx)
JoinContext *s = ctx->priv;
int i;
for (i = 0; i < s->inputs && s->input_frames; i++) {
av_frame_free(&s->input_frames[i]);
}
for (i = 0; i < ctx->nb_inputs; i++) {
av_freep(&ctx->input_pads[i].name);
av_frame_free(&s->input_frames[i]);
}
av_freep(&s->channels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment