From 78db0239db2f5aafe2031cb4b3ce540deb6e8907 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 24 Mar 2015 20:58:00 +0000 Subject: squash some leaks --- src/repository.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/repository.c') diff --git a/src/repository.c b/src/repository.c index 6a80070d1..7cffc9f6b 100644 --- a/src/repository.c +++ b/src/repository.c @@ -133,7 +133,9 @@ void git_repository_free(git_repository *repo) for (i = 0; i < repo->reserved_names.size; i++) git_buf_free(git_array_get(repo->reserved_names, i)); + git_array_clear(repo->reserved_names); + git__free(repo->path_gitlink); git__free(repo->path_repository); git__free(repo->workdir); git__free(repo->namespace); -- cgit v1.2.1