diff options
author | René Scharfe <l.s.r@web.de> | 2018-08-01 12:19:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-01 09:55:09 -0700 |
commit | fe583c6c7a6726452aac87a14afa5a0bf9647d8f (patch) | |
tree | 8b876c031cdba01f2e2aad41235fce1e724bbc2c /builtin/merge-base.c | |
parent | Git 2.18 (diff) | |
download | tgif-fe583c6c7a6726452aac87a14afa5a0bf9647d8f.tar.xz |
remote: clear string_list after use in mv()
Switch to the _DUP variant of string_list for remote_branches to allow
string_list_clear() to release the allocated memory at the end, and
actually call that function. Free the util pointer as well; it is
allocated in read_remote_branches().
NB: This string_list is empty until read_remote_branches() is called
via for_each_ref(), so there is no need to clean it up when returning
before that point.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/merge-base.c')
0 files changed, 0 insertions, 0 deletions