summaryrefslogtreecommitdiff
path: root/rerere.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-08-01 12:19:07 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-01 09:55:09 -0700
commitfe583c6c7a6726452aac87a14afa5a0bf9647d8f (patch)
tree8b876c031cdba01f2e2aad41235fce1e724bbc2c /rerere.c
parentGit 2.18 (diff)
downloadtgif-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 'rerere.c')
0 files changed, 0 insertions, 0 deletions