[FFmpeg-devel] [PATCH] memory leaks in libavformat/matroskadec.c

Aurelien Jacobs aurel
Wed Jan 2 18:18:18 CET 2008


On Wed, 02 Jan 2008 14:34:05 +0100
Vincent Penn? <vpenne at wyplay.com> wrote:

>  > Second patch fixed in a slightly different way (and there was no
>  > mem leak here, only some old packets which were played after the
>  > seek).
> 
> It was actually a real memory leak, because at the end of this function 
> (matroska_read_seek), num_packets was set to zero, in effect emptying 
> the packet queue, without deallocating it though.

Ho, indeed. I missed that.
Now to make it clearer, I just moved num_packets=0 into
matroska_clear_queue().

Aurel




More information about the ffmpeg-devel mailing list