We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5a135b + aedebdb commit 5e22d03Copy full SHA for 5e22d03
builtin/fetch-pack.c
@@ -274,8 +274,10 @@ int cmd_fetch_pack(int argc,
274
}
275
close(fd[0]);
276
close(fd[1]);
277
- if (finish_connect(conn))
278
- return 1;
+ if (finish_connect(conn)) {
+ ret = 1;
279
+ goto cleanup;
280
+ }
281
282
ret = !fetched_refs;
283
@@ -291,6 +293,7 @@ int cmd_fetch_pack(int argc,
291
293
printf("%s %s\n",
292
294
oid_to_hex(&ref->old_oid), ref->name);
295
296
+cleanup:
297
for (size_t i = 0; i < nr_sought; i++)
298
free_one_ref(sought_to_free[i]);
299
free(sought_to_free);
0 commit comments