From fc8afc87d78c79c57b6448f9b92e47f3f2515f38 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Sun, 6 Feb 2011 07:48:17 +0100 Subject: [PATCH] Fix a memory leak in git__joinpath() tests. --- tests/t00-core.c | 2 ++ 1 file changed, 2 insertions(+) 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; }