summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-02-04 21:17:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-05 18:24:15 (GMT)
commit15a4205d967111856279993b8aca24d4ffae787b (patch)
tree27fe344ca829cc6fa8968f5531f9938c184e2c9d /fetch-pack.h
parent36d2419c9a1b38f6883318f2af9b704d5d78356f (diff)
downloadgit-15a4205d967111856279993b8aca24d4ffae787b.zip
git-15a4205d967111856279993b8aca24d4ffae787b.tar.gz
git-15a4205d967111856279993b8aca24d4ffae787b.tar.bz2
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 'fetch-pack.h')
0 files changed, 0 insertions, 0 deletions