diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-07-26 15:31:16 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-07-26 15:33:44 +0200 |
commit | 8696d10a5befc5bf67abd0f26576c080dc99f851 (patch) | |
tree | 1c8ffe4fcf0551c204b4177ee7ce7fa81c31f198 | |
parent | c00cd43e8bc1ec6f87e82f81c7cbd84426b73056 (diff) |
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
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 4dae55237..9786b0a5e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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) |