diff options
| author | René Scharfe <l.s.r@web.de> | 2020-02-04 22:17:02 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-02-05 10:24:15 -0800 |
| commit | 15a4205d967111856279993b8aca24d4ffae787b (patch) | |
| tree | 27fe344ca829cc6fa8968f5531f9938c184e2c9d /commit.c | |
| parent | name-rev: respect const qualifier (diff) | |
| download | git-15a4205d967111856279993b8aca24d4ffae787b.tar.gz git-15a4205d967111856279993b8aca24d4ffae787b.zip | |
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 'commit.c')
0 files changed, 0 insertions, 0 deletions
