diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c index 44586b8c18..f15dad810d 100644 --- a/gst-libs/gst/rtsp/gstrtspmessage.c +++ b/gst-libs/gst/rtsp/gstrtspmessage.c @@ -563,6 +563,7 @@ gst_rtsp_message_remove_header (GstRTSPMessage * msg, GstRTSPHeaderField field, if (key_value.field == field && (indx == -1 || cnt++ == indx)) { g_array_remove_index (msg->hdr_fields, i); + g_free (key_value.value); res = GST_RTSP_OK; if (indx != -1) break;