From 782bec605d7f37a1a73aadbb6fccb37d6b18af03 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 10 May 2013 05:02:07 -0700 Subject: [PATCH] Fix potential remote console memory leak --- sim_console.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sim_console.c b/sim_console.c index 4df66594..ccf0b45d 100644 --- a/sim_console.c +++ b/sim_console.c @@ -773,8 +773,17 @@ if (flag) { return SCPE_NOPARAM; } else { - if (sim_rem_con_tmxr.master) + if (sim_rem_con_tmxr.master) { + int32 i; + tmxr_detach (&sim_rem_con_tmxr, &sim_rem_con_unit[0]); + for (i=0; i