diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-12-28 15:48:25 +0200 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-12-28 15:50:56 +0200 |
commit | 38d8cfaaff0ae6273d9e921aae08b2706355f0d2 (patch) | |
tree | 8b7bd40de1d33ce849f690d08ebd202bf4f0c8e0 | |
parent | 30fc8053a5e734c3b70156bdae94fd7d5d7865a5 (diff) |
OS: Don't leak connection translation table on regeneration
(cherry picked from commit e868e0bc0d2318e62707d3ae68532b0029959154)
-rw-r--r-- | os/connection.c | 3 |
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 |