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:51:36 +0200 |
commit | b2f6cd290c43b88f0d08fb29f8657618a067d2a0 (patch) | |
tree | d7e9a39393c3d6a9e8edb0befcc4dfd7e4d1331d /os/connection.c | |
parent | 190a0506243b39cd8dfc0e12068e3a3f416330f1 (diff) |
OS: Don't leak connection translation table on regeneration
Diffstat (limited to 'os/connection.c')
-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 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 |