OpenVisualCloud / Media-Transport-Library

A real-time media transport(DPDK, AF_XDP, RDMA) stack for both raw and compressed video based on COTS hardware.
BSD 3-Clause "New" or "Revised" License
155 stars 47 forks source link

ufd: fix memleak detected by mt_asan_check #905

Closed frankdjx closed 3 weeks ago

frankdjx commented 3 weeks ago

Fix below fail:

MTL: 2024-06-15 00:45:30, mt_asan_check, leak of 1624 byte(s) at 0x7fc17ff3b900 MTL: 2024-06-15 00:45:30, mt_asan_check, backtrace info: MTL: 2024-06-15 00:45:30, mt_asan_check, /lib/x86_64-linux-gnu/libasan.so.5(+0x6cd40) [0x7fc9823fdd40] MTL: 2024-06-15 00:45:30, mt_asan_check, /usr/local/lib/x86_64-linux-gnu/libmtl.so(mt_rte_zmalloc_socket+0x18a) [0x7fc981d07c69] MTL: 2024-06-15 00:45:30, mt_asan_check, /usr/local/lib/x86_64-linux-gnu/libmtl.so(+0x6ecbfe) [0x7fc982200bfe] MTL: 2024-06-15 00:45:30, mt_asan_check, /usr/local/lib/x86_64-linux-gnu/libmtl.so(+0x6ed322) [0x7fc982201322] MTL: 2024-06-15 00:45:30, mt_asan_check, /usr/local/lib/x86_64-linux-gnu/libmtl.so(mufd_socket_port+0x132) [0x7fc982201b26] MTL: 2024-06-15 00:45:30, mt_asan_check, /usr/local/lib/x86_64-linux-gnu/libmtl.so(mufd_socket+0x55) [0x7fc982202d20] MTL: 2024-06-15 00:45:30, mt_asan_check, ./build/app/UfdServerSample(+0x81f0) [0x559cc2cc11f0] MTL: 2024-06-15 00:45:30, mt_asan_check, /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fc981923083] MTL: 2024-06-15 00:45:30, mt_asan_check, ./build/app/UfdServerSample(+0x588e) [0x559cc2cbe88e]