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
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.
The text was updated successfully, but these errors were encountered:
vilicvane
changed the title
Possible memory leak?
Possible memory leaks?
Aug 3, 2024
I have observed memory leaks on my Rust program and while running it with valgrind, valgrind reports:
I replaced
simdjson-rust
withsimd-json
and the memory leaks no longer occur.The text was updated successfully, but these errors were encountered: