[Bug 677466] New: gstrtspconnection: GSocket and GSocketAddress leaks
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Tue Jun 5 05:24:18 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=677466
GStreamer | gst-plugins-base | git
Summary: gstrtspconnection: GSocket and GSocketAddress leaks
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: davidsf at axis.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=215640)
View: https://bugzilla.gnome.org/attachment.cgi?id=215640
Review: https://bugzilla.gnome.org/review?bug=677466&attachment=215640
Fix memory leaks in gst_rtsp_connection_accept
The GstRTSPConnection created in gst_rtsp_connection_accept keeps two
references to the client GSocket, which are unreffed when the connection is
freed. The third reference, returned by g_socket_accept, is not unreffed and
there is a GSocket leak.
The GSocketAddress reference returned by the call to
g_socket_get_remote_address in gst_rtsp_connection_accept is also not unreffed.
According to the documentation for g_socket_get_remote_address, it should be
unreffed.
I've attached a patch for fixing these problems.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list