Skip to content

Fix a couple of memory leaks.#257

Merged
hugovk merged 2 commits intoultrajson:masterfrom
borman:master
Mar 2, 2020
Merged

Fix a couple of memory leaks.#257
hugovk merged 2 commits intoultrajson:masterfrom
borman:master

Conversation

@borman
Copy link
Copy Markdown
Contributor

@borman borman commented Mar 23, 2017

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

borman added 2 commits March 23, 2017 10:19
Using ujson.dumps() with objects having __json__() method leaked memory
for object's JSON representation.
PyObject_CallObject() returns a PyObject*; discarding it leaked
memory for the result of output.write().
@daicang
Copy link
Copy Markdown

daicang commented Dec 26, 2017

Included in #270

Diniboy1123 added a commit to Gelbpunkt/IdleRPG that referenced this pull request Aug 28, 2019
Description Shoutout to @Gelbpunkt discovery (see for example ultrajson/ultrajson#257)
Diniboy1123 added a commit to Gelbpunkt/IdleRPG that referenced this pull request Aug 28, 2019
@hugovk hugovk added the changelog: Fixed For any bug fixes label Mar 2, 2020
@hugovk hugovk merged commit cfb597d into ultrajson:master Mar 2, 2020
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Mar 2, 2020

#270 isn't yet ready to merge, so let's merge this to get these fixes in.

Thanks!

@hugovk hugovk mentioned this pull request Mar 4, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Fixed For any bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants