[FFmpeg-devel] [PATCH] fix h264 memory leak with threads

Michael Niedermayer michaelni
Tue Jun 16 21:21:26 CEST 2009


On Tue, Jun 16, 2009 at 04:55:39AM -0400, Alexander Strange wrote:
> Don't know why I didn't notice this before, but thread_context and their 
> rbsp_buffer weren't freed in free_tables().
> valgrind shows a 175KB leak after the decoder is closed with 2 threads, 
> which this fixes.
>

>  h264.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 3cba7f8dbbf0ca8a90ad5caff08c04ac33f41eea  H.264-Fix-memory-leaks-with-multithreading.patch
> From 2fe32809fec5c8c4bc198c040d35b3630d926579 Mon Sep 17 00:00:00 2001
> From: Alexander Strange <astrange at ithinksw.com>
> Date: Tue, 16 Jun 2009 04:49:25 -0400
> Subject: [PATCH] H.264: Fix memory leaks with multithreading.
> 
> The threads' contexts and rbsp_buffers were not freed at the end
> of decoding.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090616/91cbed11/attachment.pgp>



More information about the ffmpeg-devel mailing list