Commit 1265b51f5be724d42e8c99326f0e5623d28fc67d

Sascha Cunz 2013-01-11T03:07:50

Add missing git_buf_free

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/clone.c b/src/clone.c
index e9686dc..d60977a 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -282,6 +282,7 @@ static int update_head_to_branch(
 
 cleanup:
 	git_reference_free(remote_ref);
+	git_buf_free(&remote_branch_name);
 	return retcode;
 }