mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +00:00
Fix a memory leak in git__joinpath() tests.
This commit is contained in:
parent
a79e8e632a
commit
fc8afc87d7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user