-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Leak #316
Comments
Thanks for reporting. I believe this is related to #314 currently being tested on master. We should have a maintenance release that addresses this issue out soon. We'll look into improving our coverage for memory leaks, we lost some when travis was recently acquired and became unfriendly to open source. |
Cheers for prompt response. I'll try that out when it's available and add a comment to this issue. |
Should be okay on master, would you be able to check master before we release this? Thanks, |
I don't understand how
would make a difference. I think that's the same as assigning a
which would result in a call to the internal function But the |
Hi - yes I'll test this today and get back to you. |
Just tested 0.163.1 and the leaks I'd seen are gone now. We also test for invalid accesses and un-initialised variable accesses and there are none of those either. Cheers for the fix. Re the NULL assignment - that's my mistake. The example I gave isn't necessary. I have a C structure that I calloc and that has some jsoncons::jsons in it. |
Hi - I've upgraded our code from v0.162.2 to v0.163.0 and our valgrind run reported some leaks in jsoncons.
I've attached a file.
Our application is C code and the only issue I've had previously with leaks is that I needed to explicitly set memory allocated by the library to NULL to free it. i.e. when I call an API like this
The selected variable didn't seem to be freed when it went out of scope. I had to have the line setting it to NULL to make sure it was freed.
But otherwise I haven't had any other issues with leaks in any version up to this one.
val-jsonob.txt
The text was updated successfully, but these errors were encountered: