diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-26 19:33:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-26 19:49:15 +0200 |
commit | 6897dfe85a70b5a2a2a7c248560b75496e401363 (patch) | |
tree | 72d6db7752bad4eb29ca9da50c78bcc2ee5dd3de /src/core/execute.c | |
parent | tree-wide: add a few missing _sentinel_ decorators (diff) | |
download | systemd-6897dfe85a70b5a2a2a7c248560b75496e401363.tar.xz systemd-6897dfe85a70b5a2a2a7c248560b75496e401363.zip |
core: add free_and_replace() at one more place
Diffstat (limited to '')
-rw-r--r-- | src/core/execute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index b531dedf32..89964b7bc1 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -4659,8 +4659,7 @@ int exec_command_set(ExecCommand *c, const char *path, ...) { return -ENOMEM; } - free(c->path); - c->path = p; + free_and_replace(c->path, p); return strv_free_and_replace(c->argv, l); } |