diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 19:37:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-03 21:52:22 +0100 |
commit | 21a07ac191adb9239d7d2f24ac947a29a2d9bf8c (patch) | |
tree | de06961e413e604b3a2f62420176403bbc0f034a | |
parent | 15b2c37d5e1155a96630eb5f8758fd849d6b2a2e (diff) | |
download | ffmpeg-21a07ac191adb9239d7d2f24ac947a29a2d9bf8c.tar.gz |
avfilter/vf_fieldhint: Free out AVFrame on error
Fixes memleak
Fixes part of CID1197065
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/vf_fieldhint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_fieldhint.c b/libavfilter/vf_fieldhint.c index 26551ce7a8..3cfeb20a38 100644 --- a/libavfilter/vf_fieldhint.c +++ b/libavfilter/vf_fieldhint.c @@ -196,6 +196,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) break; default: av_log(ctx, AV_LOG_ERROR, "Invalid hint: %c.\n", hint); + av_frame_free(&out); return AVERROR(EINVAL); } |