diff options
author | Ben Straub <bstraub@github.com> | 2012-07-27 11:55:58 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-07-27 11:55:58 -0700 |
commit | 4d83399d35f0d3d489c50f2358bd5481a90ddce5 (patch) | |
tree | 805b3ecbf4c761bc77f46eb2d5aaaaa6929c0e12 /src/clone.c | |
parent | b494cdbdb2833d1233291eea7eb5d9290257131e (diff) | |
download | libgit2-4d83399d35f0d3d489c50f2358bd5481a90ddce5.tar.gz |
Adjust for msvc pedantry.
Diffstat (limited to 'src/clone.c')
-rw-r--r-- | src/clone.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c index 22e8c0eee..7ae32a067 100644 --- a/src/clone.c +++ b/src/clone.c @@ -46,9 +46,10 @@ static int create_tracking_branch(git_repository *repo, const git_oid *target, c /* Create the new branch */ if (!git_branch_create(&branch_ref, repo, name, head_obj, 0)) { + git_config *cfg; + git_reference_free(branch_ref); /* Set up tracking */ - git_config *cfg; if (!git_repository_config(&cfg, repo)) { git_buf remote = GIT_BUF_INIT; git_buf merge = GIT_BUF_INIT; |