GNOME Bugzilla – Bug 732227
tsdemux: Leaks memory of section data
Last modified: 2015-09-04 14:00:44 UTC
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752623 Code is still the same in git master. But a bit difficult to understand because of too many gotos.
I went through the code again, and the only place that could have leaked something was this: commit cddabd751c760454915bcd3a485f241939499292 Author: Edward Hervey <bilboed@bilboed.com> Date: Wed Jun 25 14:13:55 2014 +0200 mpegtssection: Free data in error cases Data is marked as "transfer full", if we have an error we need to free it. diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c index 5167a39..7f000c4 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.c +++ b/gst-libs/gst/mpegts/gstmpegtssection.c @@ -1223,6 +1223,7 @@ short_packet: GST_WARNING ("PID 0x%04x section extends past provided data (got:%" G_GSIZE_FORMAT ", need:%d)", pid, data_size, section_length + 3); + g_free (data); return NULL; } }
Would be great if the original reporter could provide a way to reproduce the issue, or at least some logs (even just GST_DEBUG=2) to have an idea of where the leak potentially comes from.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!