Bug 10292 - XOpenDisplay() leaks memory
Summary: XOpenDisplay() leaks memory
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: git
Hardware: Other All
: medium minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Keywords: patch
Depends on:
Reported: 2007-03-14 07:03 UTC by Tilman Sauerbeck
Modified: 2007-03-28 12:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch to fix the memleak (1.12 KB, patch)
2007-03-14 07:04 UTC, Tilman Sauerbeck
no flags Details | Splinter Review

Description Tilman Sauerbeck 2007-03-14 07:03:22 UTC
If XInitThreads() is not used, dpy->lock_fns is never freed.

I'll attach a patch that works in both situations (no matter whether XInitThreads() was called or not).
Comment 1 Tilman Sauerbeck 2007-03-14 07:04:14 UTC
Created attachment 9138 [details] [review]
Patch to fix the memleak

Tested both with XIniThreads() and without.
Comment 2 Tilman Sauerbeck 2007-03-28 12:23:52 UTC
Fixed in 398d75528a84f4b8414eb0e363cf53b1b16f6fdf.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.