From 277a74bcbb7d0a93c4f2e1de11daabd8c5f93ee8 Mon Sep 17 00:00:00 2001 From: Tomas Carnecky Date: Mon, 4 Aug 2008 23:26:00 +0300 Subject: 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. --- dix/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dix/main.c') diff --git a/dix/main.c b/dix/main.c index c34bc8a3c..35e59bd46 100644 --- a/dix/main.c +++ b/dix/main.c @@ -284,10 +284,7 @@ int main(int argc, char *argv[], char *envp[]) { CreateWellKnownSockets(); InitProcVectors(); - clients = (ClientPtr *)xalloc(MAXCLIENTS * sizeof(ClientPtr)); - if (!clients) - FatalError("couldn't create client array"); - for (i=1; i