Open
Description
Disclaimer, I am new to Rust and I don't know what I am talking about.
I have observed memory leaks on my Rust program and while running it with valgrind, valgrind reports:
==3276875== 1,776 bytes in 111 blocks are definitely lost in loss record 1,181 of 1,327
==3276875== at 0x4849013: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==3276875== by 0x3F9F8D: object_to_pointer<SJ_DOM_element*, simdjson::dom::element> (simdjson_c_api.cpp:12)
==3276875== by 0x3F9F8D: move_to_handle (simdjson_c_api.cpp:310)
==3276875== by 0x3F9F8D: SJ_DOM_element_at_pointer (simdjson_c_api.cpp:394)
==3276875== by 0x3F6C8C: simdjson_rust::dom::element::Element::at_pointer (element.rs:87)
I replaced simdjson-rust
with simd-json
and the memory leaks no longer occur.
Metadata
Metadata
Assignees
Labels
No labels