mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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
This commit is contained in:
parent
7bec955fe0
commit
fc23467152
1 changed files with 2 additions and 0 deletions
|
@ -1357,6 +1357,8 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
||||||
gst_codec_utils_opus_create_caps (48000, channels,
|
gst_codec_utils_opus_create_caps (48000, channels,
|
||||||
mapping_family, stream_count, coupled_count,
|
mapping_family, stream_count, coupled_count,
|
||||||
channel_mapping);
|
channel_mapping);
|
||||||
|
|
||||||
|
g_free (channel_mapping);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (demux,
|
GST_WARNING_OBJECT (demux,
|
||||||
|
|
Loading…
Reference in a new issue