diff options
author | 2017-12-08 18:29:31 +0100 | |
---|---|---|
committer | 2017-12-08 12:18:09 -0800 | |
commit | 176cb979fe7c1cf6b789c9263ca20312385c1f31 (patch) | |
tree | 31ce4c26b4225debedd84df40a3b21c916e3408a /vcs-svn/line_buffer.h | |
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 'vcs-svn/line_buffer.h')
0 files changed, 0 insertions, 0 deletions