diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2015-11-12 12:00:07 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2015-11-12 12:08:15 +0000 |
commit | fc23467152fe470f736592a11583a140ae496c9d (patch) | |
tree | b92ff04077b843b0d960fb92f74f85792c399515 /gst/mpegtsdemux | |
parent | 7bec955fe0961e405feab420dbda5339acc4840d (diff) | |
download | gstreamer-plugins-bad-fc23467152fe470f736592a11583a140ae496c9d.tar.gz |
tsdemux: remove memory leak
The values of channel_mapping are copied by gst_codec_utils_opus_create_caps ()
but it doesn't free or take ownership of the g_new0 allocated memory. This
needs to be freed before going out of scope.
CID 1338692
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 7deb6382a..f1045da22 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1357,6 +1357,8 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream, gst_codec_utils_opus_create_caps (48000, channels, mapping_family, stream_count, coupled_count, channel_mapping); + + g_free (channel_mapping); } } else { GST_WARNING_OBJECT (demux, |