Redefine clients as a fixed array
This removes yet another xalloc() each server generation. Also, I couldn't find the corresponding xfree() so I guess that used to be a memory leak there.
This commit is contained in:
committed by
Daniel Stone
parent
5532d63488
commit
277a74bcbb
@@ -78,7 +78,7 @@ PtrCtrl defaultPointerControl = {
|
||||
DEFAULT_PTR_THRESHOLD,
|
||||
0};
|
||||
|
||||
_X_EXPORT ClientPtr *clients;
|
||||
_X_EXPORT ClientPtr clients[MAXCLIENTS];
|
||||
_X_EXPORT ClientPtr serverClient;
|
||||
_X_EXPORT int currentMaxClients; /* current size of clients array */
|
||||
_X_EXPORT long maxBigRequestSize = MAX_BIG_REQUEST_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user