-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I tried this package with RUSTFLAGS="-Z sanitizer=address" cargo build, and there are a lot of memory leaks in my code.
==528==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 40 byte(s) in 1 object(s) allocated from:
#0 0x5568f7228c4d in malloc /rustc/llvm/src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:129:3
#1 0x5568f7808c0b in alloc::alloc::alloc::h3bced346ddf221f1 /rustc/11491938f80988c7261a1179cf71a25c379c8783/library/alloc/src/alloc.rs:86:14
#2 0x5568f7808eb7 in alloc::alloc::Global::alloc_impl::hcd9d03062a49d96b /rustc/11491938f80988c7261a1179cf71a25c379c8783/library/alloc/src/alloc.rs:166:73
#3 0x5568f7809880 in _$LT$alloc..alloc..Global$u20$as$u20$core..alloc..Allocator$GT$::allocate::h80dd74306609a6fd /rustc/11491938f80988c7261a1179cf71a25c379c8783/library/alloc/src/alloc.rs:226:9
#4 0x5568f7808916 in alloc::alloc::exchange_malloc::h53677898fe10293d /rustc/11491938f80988c7261a1179cf71a25c379c8783/library/alloc/src/alloc.rs:315:11
#5 0x5568f78062ff in alloc::boxed::Box$LT$T$GT$::new::h604a175c798a14cc /rustc/11491938f80988c7261a1179cf71a25c379c8783/library/alloc/src/boxed.rs:191:9
#6 0x5568f78062ff in unrolled_linked_list::UnrolledLinkedList$LT$T$GT$::push::h8b201f923d055933 /home/aminya/.cargo/registry/src/github.com-1ecc6299db9ec823/unrolled-linked-list-1.0.1/src/lib.rs:129:32It points to this location of code
unrolled-linked-list/src/lib.rs
Line 129 in 95d94c9
| let mut node = Box::new(Node::new()); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels