sim_tmxr.c Fixed console behaviors the console is directed to a serial port.

This commit is contained in:
Mark Pizzolato 2012-10-23 14:40:56 -07:00
parent 1fda1b1708
commit 15e648f560

View file

@ -1950,7 +1950,8 @@ for (i = 0; i < mp->lines; i++) { /* loop thru conn */
}
}
sim_close_sock (mp->master, 1); /* close master socket */
if (mp->master)
sim_close_sock (mp->master, 1); /* close master socket */
mp->master = 0;
free (mp->port);
mp->port = NULL;