Commit 8696d10a authored by Wim Taymans's avatar Wim Taymans
Browse files

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
parent c00cd43e
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment