[x264-devel] Re: Possible memory leak in macroblock_cache

Loïc Le Loarer lll+vlc at m4x.org
Wed Jun 7 23:30:20 CEST 2006


Le Wednesday 07 June 2006 à 17:34:37 +0200, Steven Tondeur a écrit:
> Hi,
> 
> I found a small inconsistency between initializing and ending the 
> macrblock cache.
> 
> cache_init : int i_refs = (i ? 1 : h->param.i_frame_reference) + 
> h->param.b_bframe_pyramid;
> cache_end  : int i_refs = i ? 1 + h->param.b_bframe_pyramid : 
> h->param.i_frame_reference;

There are many other possible leaks, mainly in case of error, and I
already sent a patch coverring them, including this specific one,
yesterday (6/6/2006), in the file x264_malloc_test_3.diff attached to a
message with the subject "Re: [PATCH] malloc result test".

Hope this will be included soon.

Best regards.

-- 
Loïc

"heaven is not a place, it's a feeling"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20060607/85fd0f12/attachment.pgp 


More information about the x264-devel mailing list