diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-10 13:54:50 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-07-10 14:43:44 +0200 |
commit | 309c6b19a784c225b17effa8e7ee583fa1d9001d (patch) | |
tree | 153360bd2b3925b8fe846b0c5cbd08cb0610f3d4 /src/basic/strv.c | |
parent | Remove string_free_erase (diff) | |
download | systemd-309c6b19a784c225b17effa8e7ee583fa1d9001d.tar.xz systemd-309c6b19a784c225b17effa8e7ee583fa1d9001d.zip |
Remove string_erase
Diffstat (limited to 'src/basic/strv.c')
-rw-r--r-- | src/basic/strv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c index 21c106149b..0a1adbf30b 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -11,6 +11,7 @@ #include "escape.h" #include "extract-word.h" #include "fileio.h" +#include "memory-util.h" #include "nulstr-util.h" #include "sort-util.h" #include "string-util.h" @@ -78,9 +79,9 @@ char **strv_free_erase(char **l) { char **i; STRV_FOREACH(i, l) - string_erase(*i); + erase_and_freep(i); - return strv_free(l); + return mfree(l); } char **strv_copy(char * const *l) { |