summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/git-access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/git-access.c b/core/git-access.c
index dbb8dabd4..bfb3659bb 100644
--- a/core/git-access.c
+++ b/core/git-access.c
@@ -700,6 +700,8 @@ static git_repository *create_and_push_remote(const char *localdir, const char *
merge_head = malloc(len);
snprintf(merge_head, len, "refs/heads/%s", branch);
git_config_set_string(conf, variable_name, merge_head);
+ free(variable_name);
+ free(merge_head);
/* finally create an empty commit and push it to the remote */
if (do_git_save(repo, branch, remote, false, true))