summaryrefslogtreecommitdiff
path: root/strv.c
diff options
context:
space:
mode:
Diffstat (limited to 'strv.c')
-rw-r--r--strv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/strv.c b/strv.c
index c4880c49ca..25ea92c112 100644
--- a/strv.c
+++ b/strv.c
@@ -163,6 +163,8 @@ fail:
for (k--; k >= r; k--)
free(*k);
+ free(r);
+
return NULL;
}
@@ -191,6 +193,8 @@ fail:
for (k--; k >= r; k--)
free(*k);
+ free(r);
+
return NULL;
}
@@ -305,6 +309,8 @@ fail:
for (k--; k >= r; k--)
free(*k);
+ free(r);
+
return NULL;
}