chiark / gitweb /
util: return after freeing all members of array
authorLukas Nykryn <lnykryn@redhat.com>
Wed, 20 Aug 2014 13:02:09 +0000 (15:02 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 20 Aug 2014 13:02:09 +0000 (15:02 +0200)
src/shared/util.c

index 85a570a..9d254e0 100644 (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)