From 8696d10a5befc5bf67abd0f26576c080dc99f851 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 26 Jul 2010 15:31:16 +0200 Subject: [PATCH] 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 --- gst/rtsp/gstrtspsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 4dae552373..9786b0a5e0 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)