summaryrefslogtreecommitdiff
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2020-11-14 23:01:04 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-16 14:21:43 -0800
commit1c3e412916df1193b270a6947782f96524e5fa45 (patch)
tree7c706eeaad605df44263f237334f5764cdfb71ff /GIT-VERSION-GEN
parentGit 2.29.2 (diff)
downloadtgif-1c3e412916df1193b270a6947782f96524e5fa45.tar.xz
archive: release refname after use
parse_treeish_arg() uses dwim_ref() to set refname to a strdup'd string. Release it after use. Also remove the const qualifier from the refname member to signify that ownership of the string is handed to the struct, leaving cleanup duty with the caller of parse_treeish_arg(), thus avoiding a cast. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions