Skip to content

Commit 2f9dfb8

Browse files
committed
Merge branch 'bw/attr-pathspec'
* bw/attr-pathspec: pathspec: fix segfault in clear_pathspec
2 parents df3b119 + 5ce10c0 commit 2f9dfb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pathspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ void clear_pathspec(struct pathspec *pathspec)
724724
free(pathspec->items[i].match);
725725
free(pathspec->items[i].original);
726726

727-
for (j = 0; j < pathspec->items[j].attr_match_nr; j++)
727+
for (j = 0; j < pathspec->items[i].attr_match_nr; j++)
728728
free(pathspec->items[i].attr_match[j].value);
729729
free(pathspec->items[i].attr_match);
730730

0 commit comments

Comments
 (0)