Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
send-pack: release strbuf on error return in send_pack()
author
Rene Scharfe
<l.s.r@web.de>
Wed, 30 Aug 2017 18:00:28 +0000
(20:00 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 Sep 2017 23:49:28 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
85af9f7
)
diff --git
a/send-pack.c
b/send-pack.c
index 11d6f3d98398e8b7a1add501dd7ee85a736531b6..b865f662e41880d11305ac6a4fe64450ef26f133 100644
(file)
--- a/
send-pack.c
+++ b/
send-pack.c
@@
-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
* 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);
+ }
/* Fallthrough for non atomic case. */
default:
continue;