[x264-devel] memory leaks in encoder_open

aviad rozenhek aviadr1 at gmail.com
Tue Oct 16 14:08:24 CEST 2007


hi,

I wrote a small program that calls encoder_open and encoder_close in a loop.

using deleaker tools I found the following leaks:
I am not familiar with x264 internals at all, so I am not able to suggest a
fix.
I hope this helps somewhat, though.

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_frame_new Line 125
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
*x264filter.dll!x264_frame_pop_unused Line 888
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
x264filter.dll!x264_encoder_open Line 699
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_frame_new Line 126
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
*x264filter.dll!x264_frame_pop_unused Line 888
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
x264filter.dll!x264_encoder_open Line 699
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_frame_new Line 111
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
*x264filter.dll!x264_frame_pop_unused Line 888
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
x264filter.dll!x264_encoder_open Line 699
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_frame_new Line 129
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
*x264filter.dll!x264_frame_pop_unused Line 888
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
x264filter.dll!x264_encoder_open Line 699
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
x264filter.dll!x264_cqm_init Line 110
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\set.c)
*x264filter.dll!x264_encoder_open Line 630
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
*x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!malloc Line 154
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!x264_malloc Line 756
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
x264filter.dll!x264_frame_new Line 111
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
x264filter.dll!x264_frame_pop_unused Line 888
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\frame.c)
*x264filter.dll!x264_encoder_open Line 699
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
*x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 26
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)

x264filter.dll!_heap_alloc_base Line 105
(f:\sp\vctools\crt_bld\self_x86\crt\src\malloc.c)
x264filter.dll!_heap_alloc_dbg Line 411
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_nh_malloc_dbg Line 268
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_malloc_dbg Line 191
(f:\sp\vctools\crt_bld\self_x86\crt\src\dbgheap.c)
x264filter.dll!_stbuf Line 91
(f:\sp\vctools\crt_bld\self_x86\crt\src\_sftbuf.c)
x264filter.dll!fprintf Line 69
(f:\sp\vctools\crt_bld\self_x86\crt\src\fprintf.c)
x264filter.dll!x264_log_default Line 580
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_log Line 554
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\common\common.c)
*x264filter.dll!x264_encoder_open Line 683
(d:\work\trunk.good\media\msw\filters\x264filter\x264.new\encoder\encoder.c)
x264filter.dll!rayv::media::X264Filter::InitX264 Line 442
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
x264filter.dll!rayv::media::X264Filter::StartStreaming Line 349
(d:\work\trunk.good\media\msw\filters\x264filter\x264filter.cpp)
memtest.exe!main Line 15
(d:\work\trunk.good\media\msw\filters\x264filter\memtest\memtest.cpp)
memtest.exe!__tmainCRTStartup Line 597
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
memtest.exe!mainCRTStartup Line 414
(f:\sp\vctools\crt_bld\self_x86\crt\src\crtexe.c)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20071016/b62122ec/attachment.htm 


More information about the x264-devel mailing list