mirror of
https://github.com/git/git.git
synced 2026-02-03 14:31:45 +00:00
Merge branch 'bw/attr-pathspec'
* bw/attr-pathspec: pathspec: fix segfault in clear_pathspec
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user