From 0b0dde7ce11e15bedaf34aea2df843a5253d1e2f Mon Sep 17 00:00:00 2001 From: David Svensson Fors Date: Wed, 6 Jun 2012 14:53:43 +0200 Subject: [PATCH] rtsp: don't leak address and socket Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677466 --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 22f3d0b..fa7ec81 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -322,10 +322,12 @@ gst_rtsp_connection_accept (GSocket * socket, GstRTSPConnection ** conn, ip = g_inet_address_to_string (g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (addr))); port = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (addr)); + g_object_unref (addr); ret = gst_rtsp_connection_create_from_socket (client_sock, ip, port, NULL, conn); + g_object_unref (client_sock); g_free (ip); return ret; -- 2.7.4