Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sb/hashmap-customize-comparison' into sb/diff-color-move
[gitweb.git]
/
pathspec.c
diff --git
a/pathspec.c
b/pathspec.c
index ecc5331c232ef81f26343fd958a9b66e92a3fa5e..a5f4df31eab7fd465c2e68c7a400287756c34c51 100644
(file)
--- a/
pathspec.c
+++ b/
pathspec.c
@@
-663,7
+663,6
@@
void clear_pathspec(struct pathspec *pathspec)
attr_check_free(pathspec->items[i].attr_check);
}
- free(pathspec->items);
- pathspec->items = NULL;
+ FREE_AND_NULL(pathspec->items);
pathspec->nr = 0;
}