util: return after freeing all members of array

This commit is contained in:
Lukas Nykryn
2014-08-20 15:02:09 +02:00
parent 7a855149ea
commit 081e009bef
Notes: Lennart Poettering 2014-10-24 17:00:29 +02:00
Backport: bugfix

View File

@@ -7113,10 +7113,10 @@ int unquote_many_words(const char **p, ...) {
if (r < 0) {
int j;
for (j = 0; j < c; j++) {
for (j = 0; j < c; j++)
free(l[j]);
return r;
}
return r;
}
if (r == 0)