Bug 93183

Summary: _XDefaultOpenIM memory leak
Product: xorg Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: Lib/XlibAssignee: Alan Coopersmith <alan.coopersmith>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sami Farin 2015-11-30 21:46:28 UTC
if this happens, local_impart is not free()d:

    if ((im->core.im_name = Xmalloc(i+1)) == NULL)
        goto Error2;
Comment 1 Alan Coopersmith 2015-12-04 07:43:03 UTC
Proposed fix posted for review:
http://patchwork.freedesktop.org/patch/67089/
Comment 2 Alan Coopersmith 2015-12-19 17:16:56 UTC
More complete fix pushed to git master:
http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=a2f9dfac286f37e54eb47d4736cc3f0150224a84

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.