rtspsrc: fix memory leak in server request reply

The RTSP server rtspsrc is communicating with, sends a GET_PARAMETER request
periodically as a ping.  The code in gst_rtspsrc_handle_request forms an OK
response and sends, but doesn't call gst_rtsp_message_unset to free the memory
after sending the response.  This results in a constant slow memory leak.

Fixes #624770
This commit is contained in:
Wim Taymans 2010-07-26 15:31:16 +02:00
parent c00cd43e8b
commit 8696d10a5b

View file

@ -3215,6 +3215,7 @@ gst_rtspsrc_handle_request (GstRTSPSrc * src, GstRTSPConnection * conn,
gst_rtsp_message_dump (&response);
res = gst_rtspsrc_connection_send (src, conn, &response, NULL);
gst_rtsp_message_unset (&response);
if (res < 0)
goto send_error;
} else if (res == GST_RTSP_EEOF)