summaryrefslogtreecommitdiff
path: root/notes-utils.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2020-02-04 22:17:02 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-05 10:24:15 -0800
commit15a4205d967111856279993b8aca24d4ffae787b (patch)
tree27fe344ca829cc6fa8968f5531f9938c184e2c9d /notes-utils.h
parentname-rev: respect const qualifier (diff)
downloadtgif-15a4205d967111856279993b8aca24d4ffae787b.tar.xz
name-rev: don't leak path copy in name_ref()
name_ref() duplicates the path string and passes it to name_rev(), which either puts it into a commit slab or ignores it if there is already a better name, leaking it. Move the duplication to name_rev() and release the copy in the latter case. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-utils.h')
0 files changed, 0 insertions, 0 deletions