rtsp-client: Don't leak addr
authorEdward Hervey <edward@centricular.com>
Tue, 21 Nov 2017 08:53:19 +0000 (09:53 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 21 Nov 2017 08:53:19 +0000 (09:53 +0100)
CID #1422260

gst/rtsp-server/rtsp-client.c

index e46f587..b2b1008 100644 (file)
@@ -1837,9 +1837,9 @@ default_configure_client_transport (GstRTSPClient * client,
         ct->port.min = addr->port;
         ct->port.max = addr->port + addr->n_ports - 1;
         ct->ttl = addr->ttl;
-
-        gst_rtsp_address_free (addr);
       }
+
+      gst_rtsp_address_free (addr);
     } else {
       GstRTSPUrl *url;