OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85af9f7
)
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
diff --git
a/send-pack.c
b/send-pack.c
index
11d6f3d
..
b865f66
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;