summaryrefslogtreecommitdiffstats
path: root/src/basic/strv.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-10 13:54:50 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-10 14:43:44 +0200
commit309c6b19a784c225b17effa8e7ee583fa1d9001d (patch)
tree153360bd2b3925b8fe846b0c5cbd08cb0610f3d4 /src/basic/strv.c
parentRemove string_free_erase (diff)
downloadsystemd-309c6b19a784c225b17effa8e7ee583fa1d9001d.tar.xz
systemd-309c6b19a784c225b17effa8e7ee583fa1d9001d.zip
Remove string_erase
Diffstat (limited to 'src/basic/strv.c')
-rw-r--r--src/basic/strv.c5
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) {