docs: update 64-bit core.packedGitLimit default
[gitweb.git] / pathspec.c
index 303efda837a10ec4e8798f9899c90cd511752cfe..69ef86b85a7735df428b8cab9f9cce477a4fcd89 100644 (file)
@@ -724,7 +724,7 @@ void clear_pathspec(struct pathspec *pathspec)
                free(pathspec->items[i].match);
                free(pathspec->items[i].original);
 
-               for (j = 0; j < pathspec->items[j].attr_match_nr; j++)
+               for (j = 0; j < pathspec->items[i].attr_match_nr; j++)
                        free(pathspec->items[i].attr_match[j].value);
                free(pathspec->items[i].attr_match);