[PATCH] memory leaks in libavformat/matroskadec.c
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. It could easily leak dozens of megabytes after an intensive use of seeking. ---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you. Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
Hi, Vincent Penn? wrote:
---- This message contains confidential information and may contain information that is legally privileged. If you have received this message by mistake, please immediately notify us and delete the original message. Thank you.
Ce message contient des informations confidentielles. S'il vous est parvenu par erreur, merci de bien vouloir nous en aviser par retour, de n'en faire aucun usage et de n'en garder aucune copie. ----
please leave that away, at least when posting to mailing lists -- Ben Purple Labs S.A. www.purplelabs.com
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
participants (3)
-
aurel@gnuage.org -
benoit.fouet@purplelabs.com -
vpenne@wyplay.com