Commit aef0be08 authored by Luca Barbato's avatar Luca Barbato

avcodec: Unref the dummy buffer on the fail path

parent 8eb57dc9
...@@ -727,6 +727,7 @@ do { \ ...@@ -727,6 +727,7 @@ do { \
ref_out = av_buffer_create(data, data_size, compat_release_buffer, \ ref_out = av_buffer_create(data, data_size, compat_release_buffer, \
dummy_ref, 0); \ dummy_ref, 0); \
if (!ref_out) { \ if (!ref_out) { \
av_buffer_unref(&dummy_ref); \
av_frame_unref(frame); \ av_frame_unref(frame); \
ret = AVERROR(ENOMEM); \ ret = AVERROR(ENOMEM); \
goto fail; \ 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