GNOME Bugzilla – Bug 624770
rtspsrc: memory leak in gst_rtspsrc_handle_request
Last modified: 2010-08-14 13:09:37 UTC
Created attachment 166177 [details] [review] patch Memory leak occurs in gst_rtspsrc_handle_request function in gstrtspsrc.c. 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. Examined git; leak still seems to exist in most current code. Patch attached.
Please provide a real name (so that we can properly credit your work) for future (bigger) patches. Thanks! commit 8696d10a5befc5bf67abd0f26576c080dc99f851 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Mon Jul 26 15:31:16 2010 +0200 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
the developer's name is Jonathan Short