mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Actually fix fallback shell memory leak
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
ef7f0b100b
commit
e9da876a10
1 file changed
+4
-5
@@ -530,17 +530,16 @@ int conf_parse_config(void)
|
|||||||
else
|
else
|
||||||
fallback = strdup(FALLBACK_SHELL);
|
fallback = strdup(FALLBACK_SHELL);
|
||||||
|
|
||||||
if (tty_register(fallback)) {
|
if (tty_register(fallback))
|
||||||
|
_pe("Failed registering fallback TTY");
|
||||||
|
|
||||||
|
if (!console)
|
||||||
free(fallback);
|
free(fallback);
|
||||||
if (console)
|
|
||||||
console = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Local Variables:
|
* Local Variables:
|
||||||
* indent-tabs-mode: t
|
* indent-tabs-mode: t
|
||||||
|
|||||||
Reference in new issue
Block a user