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
memory leak, process crash
Does this happen every time?
no, sometimes. when there is bad sequence rtp
I have fixed this.
Just tell others.
add this to rtp_source_process_rtp function:
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);
Author: ric <csxnju at sogou.com>
Date: Thu Aug 6 19:26:21 2009 +0200
rtpsource: avoid buffer leak on bad seqnum