GNOME Bugzilla – Bug 590797
Memory leak in rtpsource.c
Last modified: 2009-08-06 17:34:16 UTC
Please describe the problem: when there is bad sequence rtp, there is memory leak of one gstbuffer. Steps to reproduce: 1. under streaming media data environment, large bitrate (>2Mbps) 2. lost rtp or resent lost rtp 3. there is bad sequence rtp in function: rtp_source_process_rtp Actual results: memory leak, process crash Expected results: Does this happen every time? no, sometimes. when there is bad sequence rtp Other information: I have fixed this. Just tell others. add this to rtp_source_process_rtp function: bad_sequence: { GST_WARNING ("unacceptable seqnum received"); static int bytes = 0 ; bytes += sizeof(*buffer) ; bytes += GST_BUFFER_SIZE(buffer); fprintf(stderr, "--ric rtp mleak[%d] kB\n", bytes/1024); gst_buffer_unref(buffer); return GST_FLOW_OK; }
Thanks! commit 15b29bb8347938aebe920d4ebd2ec211dd43052a Author: ric <csxnju at sogou.com> Date: Thu Aug 6 19:26:21 2009 +0200 rtpsource: avoid buffer leak on bad seqnum Fixes #590797