summaryrefslogtreecommitdiffstats
path: root/src/basic/escape.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-11 09:33:31 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-11 10:06:31 +0100
commit7d0cede04f38d392834ba59f698d533782c39796 (patch)
tree3aaaf7f629be3c1643af344cb903be1c532fcad1 /src/basic/escape.c
parentprocess-util: use quote_command_line() at one more place (diff)
downloadsystemd-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.c2
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));
}