projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7594c4
)
mpeg2dec: Fix buffer memory leak in error code path
author
Deepak Srivastava
<srivastava.d@samsung.com>
Fri, 15 Sep 2017 11:36:58 +0000
(17:06 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Mon, 18 Sep 2017 08:26:21 +0000
(09:26 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=787817
ext/mpeg2dec/gstmpeg2dec.c
patch
|
blob
|
history
diff --git
a/ext/mpeg2dec/gstmpeg2dec.c
b/ext/mpeg2dec/gstmpeg2dec.c
index
5889055
..
4454e76
100644
(file)
--- a/
ext/mpeg2dec/gstmpeg2dec.c
+++ b/
ext/mpeg2dec/gstmpeg2dec.c
@@
-1057,6
+1057,7
@@
gst_mpeg2dec_handle_frame (GstVideoDecoder * decoder,
gst_buffer_ref (buf);
if (!gst_buffer_map (buf, &minfo, GST_MAP_READ)) {
GST_ERROR_OBJECT (mpeg2dec, "Failed to map input buffer");
+ gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}