Commit 0c9e78ca authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '617814b4'

* commit '617814b4':
  buffersrc: Fix resource leak on error
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents eb8756e4 617814b4
......@@ -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; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment