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

Fix a couple of memory leaks. #257

Open
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@borman
Copy link

commented Mar 23, 2017

Found a few memory leaks while running the project I am working on with address sanitizer.

borman added some commits Mar 23, 2017

Release saved raw JSON string.
Using ujson.dumps() with objects having __json__() method leaked memory
for object's JSON representation.
Do not discard result of PyObject_CallObject()
PyObject_CallObject() returns a PyObject*; discarding it leaked
memory for the result of output.write().
@daicang

This comment has been minimized.

Copy link

commented Dec 26, 2017

Included in #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.