mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Merge commit '617814b4a717b38add5ccb8dd200dbb655f98f09'
* commit '617814b4a717b38add5ccb8dd200dbb655f98f09': buffersrc: Fix resource leak on error Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
0c9e78caf4
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user