Commit fc8afc87 by nulltoken

Fix a memory leak in git__joinpath() tests.

parent a79e8e63
...@@ -354,6 +354,8 @@ static int ensure_joinpath(const char *path_a, const char *path_b, const char *e ...@@ -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)) if (strcmp(joined_path, expected_path))
error = GIT_ERROR; error = GIT_ERROR;
free(joined_path);
return error; return error;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment