Browse Source

avfilter/vf_premultiply: fix memory-leak on failure

Fixes CID #1416352
tags/n4.0
Timo Rothenpieler 8 years ago
parent
commit
c7ded42d5d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavfilter/vf_premultiply.c

+ 3
- 2
libavfilter/vf_premultiply.c View File

@@ -607,9 +607,10 @@ static int activate(AVFilterContext *ctx)
int64_t pts;

if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) {
if ((ret = filter_frame(ctx, &out, frame, frame)) < 0)
return ret;
ret = filter_frame(ctx, &out, frame, frame);
av_frame_free(&frame);
if (ret < 0)
return ret;
ret = ff_filter_frame(ctx->outputs[0], out);
}
if (ret < 0) {


Loading…
Cancel
Save