diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-04-21 14:26:36 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-04-22 12:27:13 +0200 |
commit | aef0be08756e00f363c524453c948a6e2a348614 (patch) | |
tree | aea59b794203577bee87d823806326e2650577c6 /libavcodec/utils.c | |
parent | 8eb57dc9d5ea13c12573e0759da0f7e79825af98 (diff) | |
download | ffmpeg-aef0be08756e00f363c524453c948a6e2a348614.tar.gz |
avcodec: Unref the dummy buffer on the fail path
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f1acd780dc..7740147bb6 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -727,6 +727,7 @@ do { \ ref_out = av_buffer_create(data, data_size, compat_release_buffer, \ dummy_ref, 0); \ if (!ref_out) { \ + av_buffer_unref(&dummy_ref); \ av_frame_unref(frame); \ ret = AVERROR(ENOMEM); \ goto fail; \ |