[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xcb
Subject: [Xcb] [Bug 30343] New: XCB leaks memory and socket file descriptor
From: bugzilla-daemon () freedesktop ! org
Date: 2010-09-23 12:04:14
Message-ID: bug-30343-13485 () http ! bugs ! freedesktop ! org/
[Download RAW message or body]
https://bugs.freedesktop.org/show_bug.cgi?id=30343
Summary: XCB leaks memory and socket file descriptor on
connection failure.
Product: XCB
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: medium
Component: Library
AssignedTo: xcb@lists.freedesktop.org
ReportedBy: jp.sittingduck@gmail.com
QAContact: xcb@lists.freedesktop.org
Created an attachment (id=38899)
--> (https://bugs.freedesktop.org/attachment.cgi?id=38899)
A test-case to show leak.
When there is a connection error, XCB sets has_error to 1 in xcb_connection_t,
which precludes clean-up (since, if has_error is set to 1, the connection may
be a pointer to the error_connection variable). Attached is a test-case that
simulates a connection failure. Running it in valgrind will show not only a
memory leak, but a file descriptor leak (the socket) too.
--
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.
_______________________________________________
Xcb mailing list
Xcb@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic