summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPonnam Srinivas <p.srinivas@samsung.com>2017-09-26 10:11:24 +0530
committerEdward Hervey <bilboed@bilboed.com>2017-12-01 10:58:10 +0100
commit53f524c75fd622d87d26219e7a902efa6fa9b4ab (patch)
tree56a4876e50f4d2ee1af973cdc34f98549bab69f7
parent3c967537b206d9b02c6e98b7144ef9a04c44890c (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 eabf152a..450152a7 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 {