[Mesa-dev] [Bug 64324] New: memory leak of visual info
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue May 7 09:03:18 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=64324
Priority: medium
Bug ID: 64324
Assignee: mesa-dev at lists.freedesktop.org
Summary: memory leak of visual info
Severity: minor
Classification: Unclassified
OS: All
Reporter: askinner at mathworks.com
Hardware: Other
Status: NEW
Version: unspecified
Component: Drivers/X11
Product: Mesa
This is a small leak (64 bytes) that happens as we allocate and free Visuals
and FBConfigs in X11. Brian Paul mentioned that he wouldn't be sure it was a
leak without study, so I figured I'd propose it here, just to track it.
XMesaCreateVisual allocates an XMesaVisual, then allocates an XVisualInfo and
copies into it the XVisualInfo that was passed into the function, and stores
the pointer in the XMesaVisua, as visinfo.
XMesaDestroyVisual calls free on both the XVisualInfo and the XMesaVisual.
This is never called.
But destroy_visuals_on_display(), in fakeglx.c, only calls free on the
XMesaVisual. Nothing frees the XVisualInfo that was copied into the pointer
stored in XMesaVisual.
I don't know whether destroy_visuals_on_display() should call
XMesaDestroyVisual(VisualTable[i]), or should just
free(VisualTable[i]->visinfo).
Thanks
andy
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130507/88c0da4b/attachment.html>
More information about the mesa-dev
mailing list