Commit fc8afc87d78c79c57b6448f9b92e47f3f2515f38

nulltoken 2011-02-06T07:48:17

Fix a memory leak in git__joinpath() tests.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/t00-core.c b/tests/t00-core.c
index 4a5df38..f20aa9d 100644
--- a/tests/t00-core.c
+++ b/tests/t00-core.c
@@ -354,6 +354,8 @@ static int ensure_joinpath(const char *path_a, const char *path_b, const char *e
 	if (strcmp(joined_path, expected_path))
 		error = GIT_ERROR;
 
+	free(joined_path);
+
 	return error;
 }