summaryrefslogtreecommitdiff
path: root/src/basic/strv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/strv.c')
-rw-r--r--src/basic/strv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c
index eaf440a4b2..aa68d290f6 100644
--- a/src/basic/strv.c
+++ b/src/basic/strv.c
@@ -271,8 +271,7 @@ char **strv_split_newlines(const char *s) {
return l;
if (isempty(l[n-1])) {
- free(l[n-1]);
- l[n-1] = NULL;
+ l[n - 1] = mfree(l[n - 1]);
}
return l;