Bug 8922 - Memory leak in InitClientPrivates on server reset
Summary: Memory leak in InitClientPrivates on server reset
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Eamon Walsh
QA Contact:
Depends on:
Blocks: xorg-7.2
  Show dependency treegraph
Reported: 2006-11-06 18:01 UTC by Eamon Walsh
Modified: 2006-11-06 18:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


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.