summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/git-access.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/git-access.c b/core/git-access.c
index dc48546a6..40ee25600 100644
--- a/core/git-access.c
+++ b/core/git-access.c
@@ -994,5 +994,6 @@ int git_create_local_repo(const char *filename)
free(path);
if (ret != 0)
(void)report_error("Create local repo failed with error code %d", ret);
+ git_repository_free(repo);
return ret;
}