diff options
author | Federico Tomassetti <federico@tomassetti.me> | 2015-02-23 20:55:53 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-20 01:50:46 +0300 |
commit | 617814b4a717b38add5ccb8dd200dbb655f98f09 (patch) | |
tree | 35ce93a485d17fd02c0e89f3197c895fc5839903 /libavfilter | |
parent | 336d2f0979b43a39bd11a047d798b7990d8b07c6 (diff) |
buffersrc: Fix resource leak on error
Bug-Id: CID 1267902
CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/buffersrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 00e28f8fd3..f768063309 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -195,6 +195,7 @@ do { \ ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \ dummy_ref, 0); \ if (!ref_out) { \ + av_freep(&dummy_ref); \ av_frame_unref(frame); \ ret = AVERROR(ENOMEM); \ goto fail; \ |