Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible memory leaks? #29

Open
vilicvane opened this issue Aug 3, 2024 · 0 comments
Open

Possible memory leaks? #29

vilicvane opened this issue Aug 3, 2024 · 0 comments

Comments

@vilicvane
Copy link

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.

@vilicvane vilicvane changed the title Possible memory leak? Possible memory leaks? Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant