aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-02-22 17:05:10 +0100
committerRickard Green <[email protected]>2013-02-22 17:05:10 +0100
commit93366e577b23baecef5d212ee916476607ee53ec (patch)
tree53c3eb87419dc1e073154a0074767ece0b8f441b /erts/emulator
parentc8651ed773be1b8b222338c50f680a3164ce517c (diff)
parent4c19937b77b5f648ea40e8b9d7ff3db269500ee6 (diff)
downloadotp-93366e577b23baecef5d212ee916476607ee53ec.tar.gz
otp-93366e577b23baecef5d212ee916476607ee53ec.tar.bz2
otp-93366e577b23baecef5d212ee916476607ee53ec.zip
Merge branch 'rickard/r16b/port-leak/OTP-10809'
* rickard/r16b/port-leak/OTP-10809: Fix port structure leak when hitting system limit
Diffstat (limited to 'erts/emulator')
-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;
}