diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 13:12:48 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-20 13:15:16 +0300 |
commit | 0c9e78caf4ed2c4e881c22190d7ca145fac276c2 (patch) | |
tree | 1991f3976974e21c234d25a5e7c3035f667422c1 /libavfilter | |
parent | eb8756e4b7f9e53044fbe033531c53414669a4e0 (diff) | |
parent | 617814b4a717b38add5ccb8dd200dbb655f98f09 (diff) |
Merge commit '617814b4a717b38add5ccb8dd200dbb655f98f09'
* commit '617814b4a717b38add5ccb8dd200dbb655f98f09':
buffersrc: Fix resource leak on error
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 1cef1d6a10..c4b7af4262 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -242,6 +242,7 @@ do { \ ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \ dummy_ref, (buf->perms & AV_PERM_WRITE) ? 0 : AV_BUFFER_FLAG_READONLY); \ if (!ref_out) { \ + av_freep(&dummy_ref); \ av_frame_unref(frame); \ ret = AVERROR(ENOMEM); \ goto fail; \ |