aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-02-21 09:49:56 +0100
committerRickard Green <[email protected]>2013-02-21 09:49:56 +0100
commit4c19937b77b5f648ea40e8b9d7ff3db269500ee6 (patch)
tree74b43b9d5a55c70d4a8eb681f1d095390aec68bc /erts
parentb708bf2064513e524eec1d5de1a9e76e97a20131 (diff)
downloadotp-4c19937b77b5f648ea40e8b9d7ff3db269500ee6.tar.gz
otp-4c19937b77b5f648ea40e8b9d7ff3db269500ee6.tar.bz2
otp-4c19937b77b5f648ea40e8b9d7ff3db269500ee6.zip
Fix port structure leak when hitting system limit
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index b73c883658..8c67f731f4 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -412,6 +412,7 @@ static Port *create_port(char *name,
#endif
if (enop)
*enop = 0;
+ erts_free(ERTS_ALC_T_PORT, prt);
return NULL;
}