Fix possible free'ing of unitialized pointer in error case
diff --git a/src/clone.c b/src/clone.c
index 9012c04..32ac08b 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -29,7 +29,7 @@ static int create_branch(
const char *name)
{
git_commit *head_obj = NULL;
- git_reference *branch_ref;
+ git_reference *branch_ref = NULL;
int error;
/* Find the target commit */