diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-02-06 07:48:17 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-02-06 07:48:17 +0100 |
| commit | fc8afc87d78c79c57b6448f9b92e47f3f2515f38 (patch) | |
| tree | adcbc0454904af027eff4a5696e322c6ed117e5b /tests/t00-core.c | |
| parent | a79e8e632a674934843612084cd654475c2c85b5 (diff) | |
| download | libgit2-fc8afc87d78c79c57b6448f9b92e47f3f2515f38.tar.gz | |
Fix a memory leak in git__joinpath() tests.
Diffstat (limited to 'tests/t00-core.c')
| -rw-r--r-- | tests/t00-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/t00-core.c b/tests/t00-core.c index 4a5df385..f20aa9d7 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; } |
