rtsp-client: do not free string passed to take_header
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 30 Mar 2018 21:34:01 +0000 (23:34 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Fri, 30 Mar 2018 21:34:01 +0000 (23:34 +0200)
gst/rtsp-server/rtsp-client.c

index 7a96ad2..e2112c1 100644 (file)
@@ -2852,7 +2852,6 @@ handle_announce_request (GstRTSPClient * client, GstRTSPContext * ctx)
       gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_KEYMGMT, keymgmt);
 
     g_free (location);
-    g_free (keymgmt);
   }
 
   /* we suspend after the announce */