From b2f6cd290c43b88f0d08fb29f8657618a067d2a0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 28 Dec 2007 15:48:25 +0200 Subject: [PATCH] OS: Don't leak connection translation table on regeneration --- os/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os/connection.c b/os/connection.c index 3b5742c2b..8b6541ce6 100644 --- a/os/connection.c +++ b/os/connection.c @@ -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