tests: Fix memory leak
diff --git a/tests-clar/diff/pathspec.c b/tests-clar/diff/pathspec.c
index 4334a89..7b15ea0 100644
--- a/tests-clar/diff/pathspec.c
+++ b/tests-clar/diff/pathspec.c
@@ -89,4 +89,5 @@ void test_diff_pathspec__0(void)
git_tree_free(a);
git_tree_free(b);
+ git_pathspec_free(ps);
}