clone: Fix a memory leak
diff --git a/src/clone.c b/src/clone.c
index ff586a6..c2e724c 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -333,6 +333,7 @@ static int setup_remotes_and_fetch(
}
git_remote_disconnect(origin);
}
+ git_remote_free(origin);
}
return retcode;