mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
buffersrc: Fix resource leak on error
Bug-Id: CID 1267902 CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
336d2f0979
commit
617814b4a7
@ -195,6 +195,7 @@ do { \
|
|||||||
ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \
|
ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \
|
||||||
dummy_ref, 0); \
|
dummy_ref, 0); \
|
||||||
if (!ref_out) { \
|
if (!ref_out) { \
|
||||||
|
av_freep(&dummy_ref); \
|
||||||
av_frame_unref(frame); \
|
av_frame_unref(frame); \
|
||||||
ret = AVERROR(ENOMEM); \
|
ret = AVERROR(ENOMEM); \
|
||||||
goto fail; \
|
goto fail; \
|
||||||
|
Loading…
Reference in New Issue
Block a user