summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-12-28 15:48:25 +0200
committerDaniel Stone <daniel@fooishbar.org>2007-12-28 15:50:56 +0200
commit38d8cfaaff0ae6273d9e921aae08b2706355f0d2 (patch)
tree8b7bd40de1d33ce849f690d08ebd202bf4f0c8e0
parent30fc8053a5e734c3b70156bdae94fd7d5d7865a5 (diff)
OS: Don't leak connection translation table on regeneration
(cherry picked from commit e868e0bc0d2318e62707d3ae68532b0029959154)
-rw-r--r--os/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/connection.c b/os/connection.c
index b94459366..d1ba845ef 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