summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPonnam Srinivas <p.srinivas@samsung.com>2017-09-26 10:11:24 +0530
committerSebastian Dröge <sebastian@centricular.com>2017-09-26 11:13:33 +0300
commit83d7d2f67a81ad0d99aaf616248a6aa57a1e6f01 (patch)
tree2cc62aaff34e219714fa59a331236e1c4c4208b5
parent9213d690a8e36e359ce8314db5d0e4fe83b822dd (diff)
a52dec: Fix out buffer memory leak in error code path
https://bugzilla.gnome.org/show_bug.cgi?id=788119
-rw-r--r--ext/a52dec/gsta52dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index eabf152a17..450152a724 100644
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
@@ -625,6 +625,7 @@ gst_a52dec_handle_frame (GstAudioDecoder * bdec, GstBuffer * buffer)
("error decoding block %d", i), result);
if (result != GST_FLOW_OK) {
gst_buffer_unmap (outbuf, &map);
+ gst_buffer_unref (outbuf);
goto exit;
}
} else {