summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-04-21 14:26:36 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-04-22 12:27:13 +0200
commitaef0be08756e00f363c524453c948a6e2a348614 (patch)
treeaea59b794203577bee87d823806326e2650577c6 /libavcodec/utils.c
parent8eb57dc9d5ea13c12573e0759da0f7e79825af98 (diff)
avcodec: Unref the dummy buffer on the fail path
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
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; \