=================================================================
29ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x602000000110
#0 0x7fb4c142f0d8 in operator delete(void*, unsigned long) (/usr/local/lib64/libasan.so.5+0xeb0d8)
#3 0x7fb4bfa082e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
0x602000000110 is located 0 bytes inside of 16-byte region [0x602000000110,0x602000000120)
allocated by thread T0 here:
#0 0x7fb4c142c2b0 in malloc (/usr/local/lib64/libasan.so.5+0xe82b0)
#2 0x7fb4bfa082e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/usr/local/lib64/libasan.so.5+0xeb0d8) in operator delete(void*, unsigned long)
29HINT: if you don’t care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0
29ABORTING
解决方案
LeetCode错误
最新推荐文章于 2023-01-13 00:46:59 发布