mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
manager: print p and then free it
This commit is contained in:
parent
4534824035
commit
34bf02818d
@ -2479,9 +2479,9 @@ static int create_generator_dir(Manager *m, char **generator, const char *name)
|
||||
return log_oom();
|
||||
|
||||
if (!mkdtemp(p)) {
|
||||
free(p);
|
||||
log_error("Failed to create generator directory %s: %m",
|
||||
p);
|
||||
free(p);
|
||||
return -errno;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user