You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$uname -a
Linux 830d0c3e8261 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Reproduction
// make debug mode
$ make --prefix=/root/myhtml/build && make install
$ gcc /root/myhtml/examples/myhtml/string_manipulate_high_level.c -L/root/myhtml/build/lib -I/root/myhtml/build/include -lmyhtml -g -O0 -fsanitize=address
$ ./a.out
output
=================================================================
==48150==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7f5e5f91d887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145#1 0x7f5e5f618010 in mycore_malloc source/myport/posix/mycore/./memory.c:25#2 0x7f5e5f5cfe80 in myhtml_collection_create source/myhtml/./myhtml.c:1488#3 0x7f5e5f5caa14 in myhtml_get_nodes_by_tag_id source/myhtml/./myhtml.c:445#4 0x56316b01c6da in main /root/myhtml/examples/myhtml/string_manipulate_high_level.c:54#5 0x7f5e5f328d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
Objects leaked above:
0x603000000190 (24 bytes)
Indirect leak of 8192 byte(s) in 1 object(s) allocated from:
#0 0x7f5e5f91d887 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145#1 0x7f5e5f618010 in mycore_malloc source/myport/posix/mycore/./memory.c:25#2 0x7f5e5f5cff4f in myhtml_collection_create source/myhtml/./myhtml.c:1499#3 0x7f5e5f5caa14 in myhtml_get_nodes_by_tag_id source/myhtml/./myhtml.c:445#4 0x56316b01c6da in main /root/myhtml/examples/myhtml/string_manipulate_high_level.c:54#5 0x7f5e5f328d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
Objects leaked above:
0x62500000f100 (8192 bytes)
SUMMARY: AddressSanitizer: 8216 byte(s) leaked in 2 allocation(s).
The text was updated successfully, but these errors were encountered:
Env
Reproduction
// make debug mode $ make --prefix=/root/myhtml/build && make install $ gcc /root/myhtml/examples/myhtml/string_manipulate_high_level.c -L/root/myhtml/build/lib -I/root/myhtml/build/include -lmyhtml -g -O0 -fsanitize=address $ ./a.out
output
The text was updated successfully, but these errors were encountered: