From 4c19937b77b5f648ea40e8b9d7ff3db269500ee6 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Thu, 21 Feb 2013 09:49:56 +0100 Subject: Fix port structure leak when hitting system limit --- erts/emulator/beam/io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'erts') 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; } -- cgit v1.2.3