GNOME Bugzilla – Bug 676647
Opus RTP payloader is leaking memory (patch included)
Last modified: 2012-05-23 18:33:40 UTC
Created attachment 214776 [details] [review] Linear increase in heap usage observed while using the payloader; patch included Using the Opus RTP payloader causes memory leaks. The following command will show a linear increase in heap usage: gst-launch audiotestsrc ! opusenc ! rtpopuspay ! fakesink while this one doesn't: gst-launch audiotestsrc ! opusenc ! fakesink The heap increase has been confirmed both with the top command and with valgrind massif. The cause is a missing unref in the payloader's handle_buffer() function. The buffer passed to it as an argument is not unreferenced. The attached patch fixes this. It calls gst_buffer_unref(buffer); right before the return line.
Its the first time I submit a bug here. I was not sure of the version number; should it be the version number of GStreamer (which is 0.10.36) or gst-plugins-bad (which is 0.10.23) ?
Filing against -bad the version number of -bad applies, so that is ok. [0.10; already fixed in 0.11] commit 2ad90f2d162e8cc3a981d2e77e926d6eec01919e Author: Carlos Rafael Giani <dv@pseudoterminal.org> Date: Wed May 23 20:28:06 2012 +0200 opuspay: plug buffer leak Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676647