mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
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:
parent
c00cd43e8b
commit
8696d10a5b
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue