mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Actually fix fallback shell memory leak
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user