[Xcb] [Bug 30343] XCB leaks memory and socket file descriptor on connection failure.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 23 05:06:53 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=30343
--- Comment #1 from jp.sittingduck at gmail.com 2010-09-23 05:06:53 PDT ---
Created an attachment (id=38900)
View: https://bugs.freedesktop.org/attachment.cgi?id=38900
Review: https://bugs.freedesktop.org/review?bug=30343&attachment=38900
Here is my proposed patch.
This is my proposed patch that adds an is_open field to xcb_connection_t, which
is checked in xcb_disconnect so that an open connection can be cleaned up
despite having had an error.
error_connection in xcb_conn.c is changed from an int to an xcb_connection_t,
with has_error and is_open set to 1 and 0 respectively.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Xcb
mailing list