mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-12 23:15:03 +07:00
execute,util: fix two small memory leaks
This commit is contained in:
parent
2c4b304e64
commit
86a3475bc5
@ -1406,6 +1406,9 @@ void exec_context_done(ExecContext *c) {
|
||||
|
||||
if (c->cpuset)
|
||||
CPU_FREE(c->cpuset);
|
||||
|
||||
free(c->utmp_id);
|
||||
c->utmp_id = NULL;
|
||||
}
|
||||
|
||||
void exec_command_done(ExecCommand *c) {
|
||||
|
@ -3090,6 +3090,9 @@ void status_welcome(void) {
|
||||
status_printf("Welcome to \x1B[%sm%s\x1B[0m!\n",
|
||||
const_color ? const_color : ansi_color,
|
||||
const_pretty ? const_pretty : pretty_name);
|
||||
|
||||
free(ansi_color);
|
||||
free(pretty_name);
|
||||
}
|
||||
|
||||
char *replace_env(const char *format, char **env) {
|
||||
|
Loading…
Reference in New Issue
Block a user