GNOME Bugzilla – Bug 484990
memleak - missing g_free() rtpmanager/gstrtpbin.c
Last modified: 2007-10-09 10:01:55 UTC
Missing g_free for string at gstrtpbin.c:911 . Patch : Index: gstrtpbin.c =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/gst/rtpmanager/gstrtpbin.c,v retrieving revision 1.30 diff -u -r1.30 gstrtpbin.c --- gstrtpbin.c 8 Oct 2007 10:39:34 -0000 1.30 +++ gstrtpbin.c 9 Oct 2007 09:25:33 -0000 @@ -912,6 +912,7 @@ templ = gst_static_pad_template_get (&rtpbin_sync_sink_template); stream->sync_pad = gst_pad_new_from_template (templ, padname); gst_object_unref (templ); + g_free(padname); gst_object_ref (stream->sync_pad); gst_object_sink (stream->sync_pad); gst_pad_set_element_private (stream->sync_pad, stream);
Patch by: Laurent Glayal <spglegle at yahoo dot fr> * gst/rtpmanager/gstrtpbin.c: (create_stream), (gst_rtp_bin_class_init): Fix memleak. Fixes #484990.