summaryrefslogtreecommitdiff
path: root/tests/t00-core.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-02-06 07:48:17 +0100
committernulltoken <emeric.fermas@gmail.com>2011-02-06 07:48:17 +0100
commitfc8afc87d78c79c57b6448f9b92e47f3f2515f38 (patch)
treeadcbc0454904af027eff4a5696e322c6ed117e5b /tests/t00-core.c
parenta79e8e632a674934843612084cd654475c2c85b5 (diff)
downloadlibgit2-fc8afc87d78c79c57b6448f9b92e47f3f2515f38.tar.gz
Fix a memory leak in git__joinpath() tests.
Diffstat (limited to 'tests/t00-core.c')
-rw-r--r--tests/t00-core.c2
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;
}