diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-11 09:33:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-11 10:06:31 +0100 |
commit | 7d0cede04f38d392834ba59f698d533782c39796 (patch) | |
tree | 3aaaf7f629be3c1643af344cb903be1c532fcad1 /src/basic/escape.c | |
parent | process-util: use quote_command_line() at one more place (diff) | |
download | systemd-7d0cede04f38d392834ba59f698d533782c39796.tar.xz systemd-7d0cede04f38d392834ba59f698d533782c39796.zip |
escape: return unused memory in quote_command_line()
Diffstat (limited to 'src/basic/escape.c')
-rw-r--r-- | src/basic/escape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/escape.c b/src/basic/escape.c index 25f3861a5f..ce57fcc762 100644 --- a/src/basic/escape.c +++ b/src/basic/escape.c @@ -561,5 +561,5 @@ char* quote_command_line(char **argv, ShellEscapeFlags flags) { return NULL; } - return TAKE_PTR(result); + return str_realloc(TAKE_PTR(result)); } |