diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-14 17:49:18 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-14 17:49:18 -0500 |
commit | 527be0a202b2093cb5249cf6b534992869fa3bb5 (patch) | |
tree | bf5baf2b5d5efcedb631cb98928cb0177557ee80 | |
parent | 80742e159c3221fd853d9a0fe735b382a7e3419d (diff) | |
download | libgit2-527be0a202b2093cb5249cf6b534992869fa3bb5.tar.gz |
clone: clean up options on failure
-rw-r--r-- | src/libgit2/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/clone.c b/src/libgit2/clone.c index e8885f22a..b73880e44 100644 --- a/src/libgit2/clone.c +++ b/src/libgit2/clone.c @@ -423,7 +423,7 @@ static int clone_into( fetch_opts.download_tags = GIT_REMOTE_DOWNLOAD_TAGS_ALL; if ((error = git_remote_connect_options__from_fetch_opts(&connect_opts, remote, &fetch_opts)) < 0) - return error; + goto cleanup; git_str_printf(&reflog_message, "clone: from %s", git_remote_url(remote)); |