diff --git a/tests/t00-core.c b/tests/t00-core.c index 4a5df385f..f20aa9d76 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; }