summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-21 09:53:19 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-11-21 09:53:19 +0100
commit7bf8c4d21832c16052dc2080b5f3aed7fca6f13f (patch)
treeb18fd48ce3d87dafdedf81b16f062ebde1a4b866
parent4d98bc5e5585db1c10c75e162336077ff6a08a71 (diff)
rtsp-client: Don't leak addr
CID #1422260
-rw-r--r--gst/rtsp-server/rtsp-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index e46f587..b2b1008 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -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;