strv: fix three minor OOM-triggered memory leaks

This commit is contained in:
Lennart Poettering 2010-02-14 22:37:30 +01:00
parent 79ef004b0c
commit 100a76ee32

6
strv.c
View file

@ -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;
}