Bug 8922

Summary: Memory leak in InitClientPrivates on server reset
Product: xorg Reporter: Eamon Walsh <ewalsh>
Component: Server/GeneralAssignee: Eamon Walsh <ewalsh>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 6666    

Description Eamon Walsh 2006-11-06 18:01:18 UTC
InitClientPrivates() is called on each server reset for the serverClient, from
main.c.  This function calls xalloc to allocate memory for the serverClient's
devPrivates field, but the previous contents are not freed.

Solution is to call xrealloc, making sure field is set to NULL the first time in
the InitClient function.
Comment 1 Eamon Walsh 2006-11-06 18:13:09 UTC
Upon further investigation, the memory is properly freed down at the bottom of
the main function, so memory was not being leaked.

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.