mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
send-pack: release strbuf on error return in send_pack()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
85af9f7a02
commit
872d651f52
@@ -492,8 +492,11 @@ int send_pack(struct send_pack_args *args,
|
|||||||
* we were to send it and we're trying to send the refs
|
* we were to send it and we're trying to send the refs
|
||||||
* atomically, abort the whole operation.
|
* atomically, abort the whole operation.
|
||||||
*/
|
*/
|
||||||
if (use_atomic)
|
if (use_atomic) {
|
||||||
|
strbuf_release(&req_buf);
|
||||||
|
strbuf_release(&cap_buf);
|
||||||
return atomic_push_failure(args, remote_refs, ref);
|
return atomic_push_failure(args, remote_refs, ref);
|
||||||
|
}
|
||||||
/* Fallthrough for non atomic case. */
|
/* Fallthrough for non atomic case. */
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user