diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-04-19 21:37:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-19 21:37:21 -0700 |
commit | 2f9dfb83d7665940ad09464adc70f73ecf01cc03 (patch) | |
tree | 14f3c0b64ad08e454a4a18e9267fda79fd28b047 | |
parent | df3b1192650c6753932a0897c4608fcc22ca8d47 (diff) | |
parent | 5ce10c0a29efeab21567228f8916190f2202fdb3 (diff) | |
download | git-2f9dfb83d7665940ad09464adc70f73ecf01cc03.tar.gz git-2f9dfb83d7665940ad09464adc70f73ecf01cc03.tar.xz |
Merge branch 'bw/attr-pathspec'
* bw/attr-pathspec:
pathspec: fix segfault in clear_pathspec
-rw-r--r-- | pathspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathspec.c b/pathspec.c index 303efda83..69ef86b85 100644 --- a/pathspec.c +++ b/pathspec.c @@ -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); |