summaryrefslogtreecommitdiff
path: root/mergetools/smerge
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-08-14 12:14:53 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-14 10:52:04 -0700
commitc514c62a4fd8b4c4a3e2cad68fb590fce2940dc3 (patch)
tree4a91ef7bee58c8096e672f5b0281c218d53901b0 /mergetools/smerge
parentsubmodule--helper: use strbuf_release() to free strbufs (diff)
downloadtgif-c514c62a4fd8b4c4a3e2cad68fb590fce2940dc3.tar.xz
checkout: fix leak of non-existent branch names
We unconditionally write a branch name into a newly allocated buffer in new_branch_info->path, via setup_branch_path(). We then check to see if the branch exists; if not, we set that field to NULL, leaking the memory. We should take care to free() it when doing so. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools/smerge')
0 files changed, 0 insertions, 0 deletions