diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 15:02:09 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 15:02:09 +0200 |
commit | 081e009bef5a09c986bfabdf46e96810afaed1c3 (patch) | |
tree | a170a85c299979fd748232c0765124b4853c29a0 /src/shared/util.c | |
parent | 7a855149eaf6dbd336d9defab5b4a9c70b75d5e6 (diff) |
util: return after freeing all members of array
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index 85a570a2a4..9d254e0464 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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) |