mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 06:28:07 +02:00
OS: Don't leak connection translation table on regeneration
(cherry picked from commit e868e0bc0d2318e62707d3ae68532b0029959154)
This commit is contained in:
parent
30fc8053a5
commit
38d8cfaaff
1 changed files with 2 additions and 1 deletions
|
|
@ -353,7 +353,8 @@ InitConnectionLimits(void)
|
|||
#endif
|
||||
|
||||
#if !defined(WIN32)
|
||||
ConnectionTranslation = (int *)xnfalloc(sizeof(int)*(lastfdesc + 1));
|
||||
if (!ConnectionTranslation)
|
||||
ConnectionTranslation = (int *)xnfalloc(sizeof(int)*(lastfdesc + 1));
|
||||
#else
|
||||
InitConnectionTranslation();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue