Fix a memory leak in git__joinpath() tests.

This commit is contained in:
nulltoken 2011-02-06 07:48:17 +01:00
parent a79e8e632a
commit fc8afc87d7

View File

@ -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;
}