summaryrefslogtreecommitdiff
path: root/dix/dispatch.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:36:54 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:36:54 +0000
commit83e5d9e75d0fa1135e2c9d8b59caee98c3291681 (patch)
tree82aa26b17fc4d31c4ed433b25224a611b9a27b0c /dix/dispatch.c
parent1179ddea94efae6606162e9a1b0f2bf752ae4dd0 (diff)
DIX: Remove last alloca call
Replace with heap allocations.
Diffstat (limited to 'dix/dispatch.c')
-rw-r--r--dix/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 1a3b4abf8..5c4f8e487 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -406,7 +406,7 @@ Dispatch(void)
InitSelections();
nClients = 0;
- clientReady = (int *) ALLOCATE_LOCAL(sizeof(int) * MaxClients);
+ clientReady = (int *) xalloc(sizeof(int) * MaxClients);
if (!clientReady)
return;
@@ -535,7 +535,7 @@ Dispatch(void)
ddxBeforeReset ();
#endif
KillAllClients();
- DEALLOCATE_LOCAL(clientReady);
+ xfree(clientReady);
dispatchException &= ~DE_RESET;
#ifdef XSERVER_DTRACE
FreeRequestNames();