fix a couple of the obvious ones

This commit is contained in:
DarthArgus
2015-04-02 23:28:52 -05:00
parent e659069f7c
commit 3077d4be40
3 changed files with 7 additions and 1 deletions
@@ -212,6 +212,8 @@ void DebugMonitor::install(void)
// Allow translation of arrow keys.
if (keypad(s_outputWindow, true) == ERR)
{
fclose(s_ttyOutputFile);
fclose(s_ttyInputFile);
DEBUG_WARNING(true, ("DebugMonitor: keypad() failed [%s].", strerror(errno)));
return;
}