about summary refs log tree commit diff
path: root/src/systemd/src/basic/strv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/src/basic/strv.c')
-rw-r--r--src/systemd/src/basic/strv.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/systemd/src/basic/strv.c b/src/systemd/src/basic/strv.c
index eeb8c1e0..a3660f08 100644
--- a/src/systemd/src/basic/strv.c
+++ b/src/systemd/src/basic/strv.c
@@ -89,8 +89,7 @@ void strv_clear(char **l) {
 
 char **strv_free(char **l) {
         strv_clear(l);
-        free(l);
-        return NULL;
+        return mfree(l);
 }
 
 char **strv_free_erase(char **l) {
@@ -430,8 +429,7 @@ char *strv_join_quoted(char **l) {
         return buf;
 
  oom:
-        free(buf);
-        return NULL;
+        return mfree(buf);
 }
 
 int strv_push(char ***l, char *value) {
@@ -873,8 +871,7 @@ char ***strv_free_free(char ***l) {
         for (i = l; *i; i++)
                 strv_free(*i);
 
-        free(l);
-        return NULL;
+        return mfree(l);
 }
 
 char **strv_skip(char **l, size_t n) {