Fix Cairo memleak by QuLogic · Pull Request #5372 · matplotlib/matplotlib · GitHub
Skip to content

Fix Cairo memleak#5372

Merged
mdboom merged 1 commit into
matplotlib:v1.5.xfrom
QuLogic:cairo-memleak
Nov 2, 2015
Merged

Fix Cairo memleak#5372
mdboom merged 1 commit into
matplotlib:v1.5.xfrom
QuLogic:cairo-memleak

Conversation

@QuLogic

@QuLogic QuLogic commented Oct 31, 2015

Copy link
Copy Markdown
Member

Thanks to #5360, you can see a small memleak with the Cairo backend, apparently only 26.4889 bytes/loop. After fixing the leak, it's -0.7111 bytes/loop (aka 0).

The input buffer is copied internally when PyByteArray_FromStringAndSize
is called, so it doesn't need to stay around.
@QuLogic

QuLogic commented Oct 31, 2015

Copy link
Copy Markdown
Member Author

@jkseppan

Copy link
Copy Markdown
Member

Looks correct to me, since PyByteArray_FromStringAndSize makes a copy of the buffer passed in.

@mdboom mdboom added this to the Next bugfix release (1.5.1) milestone Nov 2, 2015
@mdboom

mdboom commented Nov 2, 2015

Copy link
Copy Markdown
Member

mdboom added a commit that referenced this pull request Nov 2, 2015
@mdboom mdboom merged commit d6d64df into matplotlib:v1.5.x Nov 2, 2015
@QuLogic QuLogic deleted the cairo-memleak branch November 2, 2015 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants