Merge branch 'sb/hashmap-customize-comparison' into sb/diff-color-move
[gitweb.git] / pathspec.c
index ecc5331c232ef81f26343fd958a9b66e92a3fa5e..a5f4df31eab7fd465c2e68c7a400287756c34c51 100644 (file)
@@ -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;
 }