Bug 10292

Summary: XOpenDisplay() leaks memory
Product: xorg Reporter: Tilman Sauerbeck <tilman>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium Keywords: patch
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch to fix the memleak none

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.