diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-03 08:06:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-04 17:27:50 +0200 |
commit | beded39b19dc212fb8ac1175acb72f415c513e35 (patch) | |
tree | 5d882360550766ade9e805b85ee2de6d15a209d6 | |
parent | 7a446b1179301b6b9d05a7d39574e75e8fa5a862 (diff) |
avfilter/vf_morpho: Fix leak of output frame on error
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_morpho.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c index cb751f7523..ce62c86f91 100644 --- a/libavfilter/vf_morpho.c +++ b/libavfilter/vf_morpho.c @@ -932,6 +932,7 @@ copy: out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); return ff_filter_frame(outlink, out); fail: + av_frame_free(&out); av_frame_free(&in); return ret; } |