summaryrefslogtreecommitdiff
path: root/strv.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-14 22:37:30 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-14 22:37:30 +0100
commit100a76ee327132db201beda0fa432af79a3ff9fd (patch)
tree72000ff99e61a24ced7862abc514b259a2cf61d5 /strv.c
parent79ef004b0c39e151c8a875f2415a0123808c2a07 (diff)
strv: fix three minor OOM-triggered memory leaks
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;
}