diff options
author | 2020-02-04 22:17:02 +0100 | |
---|---|---|
committer | 2020-02-05 10:24:15 -0800 | |
commit | 15a4205d967111856279993b8aca24d4ffae787b (patch) | |
tree | 27fe344ca829cc6fa8968f5531f9938c184e2c9d /delta.h | |
parent | name-rev: respect const qualifier (diff) | |
download | tgif-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 'delta.h')
0 files changed, 0 insertions, 0 deletions