From 2d276e1bcb47fe98f2598f476c96c253551dd515 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jul 2013 10:37:35 +0200 Subject: [PATCH] rtspsrc: avoid strdup --- gst/rtsp/gstrtspsrc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 911069f..af66df8 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5458,9 +5458,8 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src, gboolean async) goto create_request_failed; } - /* select transport, copy is made when adding to header so we can free it. */ - gst_rtsp_message_add_header (&request, GST_RTSP_HDR_TRANSPORT, transports); - g_free (transports); + /* select transport */ + gst_rtsp_message_take_header (&request, GST_RTSP_HDR_TRANSPORT, transports); /* if the user wants a non default RTP packet size we add the blocksize * parameter */ -- 2.7.4