Actually fix fallback shell memory leak

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-06-04 22:08:12 +02:00
parent ef7f0b100b
commit e9da876a10
+4 -5
View File
@@ -530,17 +530,16 @@ int conf_parse_config(void)
else
fallback = strdup(FALLBACK_SHELL);
if (tty_register(fallback)) {
if (tty_register(fallback))
_pe("Failed registering fallback TTY");
if (!console)
free(fallback);
if (console)
console = NULL;
}
}
return result;
}
/**
* Local Variables:
* indent-tabs-mode: t