From 4c4408c351650dac84c81a67a321a4d92cc85ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 22 May 2014 12:28:39 +0200 Subject: Plug leaks and fix a C99-ism We have too many places where we repeat free code, so when adding the new free to the generic code, it didn't take for the local transport. While there, fix a C99-ism that sneaked through. --- src/clone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/clone.c') diff --git a/src/clone.c b/src/clone.c index f19771c1e..8381ec63c 100644 --- a/src/clone.c +++ b/src/clone.c @@ -113,11 +113,12 @@ static int update_head_to_new_branch( const char *reflog_message) { git_reference *tracking_branch = NULL; + int error; if (!git__prefixcmp(name, GIT_REFS_HEADS_DIR)) name += strlen(GIT_REFS_HEADS_DIR); - int error = create_tracking_branch(&tracking_branch, repo, target, name, + error = create_tracking_branch(&tracking_branch, repo, target, name, signature, reflog_message); if (!error) -- cgit v1.2.1