projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c6b5d8
)
transport-helper: fix minor leak in push_refs_with_export
author
Jeff King
<peff@peff.net>
Sat, 16 Jul 2011 13:03:21 +0000
(15:03 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 19 Jul 2011 18:17:46 +0000
(11:17 -0700)
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c
patch
|
blob
|
history
diff --git
a/transport-helper.c
b/transport-helper.c
index 660147f9e96be7b69379a9040c4220c141c7be4c..b560b64149ae1cefea308f2fbb3a21d09fd8c931 100644
(file)
--- a/
transport-helper.c
+++ b/
transport-helper.c
@@
-728,6
+728,7
@@
static int push_refs_with_export(struct transport *transport,
strbuf_addf(&buf, "^%s", private);
string_list_append(&revlist_args, strbuf_detach(&buf, NULL));
}
+ free(private);
string_list_append(&revlist_args, ref->name);