diff options
author | René Scharfe <l.s.r@web.de> | 2017-12-08 18:29:31 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-08 12:18:09 -0800 |
commit | 176cb979fe7c1cf6b789c9263ca20312385c1f31 (patch) | |
tree | 31ce4c26b4225debedd84df40a3b21c916e3408a /Documentation/git-name-rev.txt | |
parent | Prepare for 2.15.2 (diff) | |
download | tgif-176cb979fe7c1cf6b789c9263ca20312385c1f31.tar.xz |
transport-helper: plug strbuf and string_list leaks
Transfer ownership of detached strbufs to string_lists of the
duplicating variety by calling string_list_append_nodup() instead of
string_list_append() to avoid duplicating and then leaking the buffer.
While at it make sure to release the string_list when done;
push_refs_with_export() already does that.
Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-name-rev.txt')
0 files changed, 0 insertions, 0 deletions