]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
notes: avoid leaking duplicate entries
authorMike Hommey <mh@glandium.org>
Sun, 25 Aug 2019 05:18:18 +0000 (14:18 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 17:29:38 +0000 (10:29 -0700)
commit779ad6641b9a6443eaec75439b3374b1a7b8794c
treee1ce9a7d64df97bd2cf0d4de9ad1bc854054079e
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e
notes: avoid leaking duplicate entries

When add_note is called multiple times with the same key/value pair, the
leaf_node it creates is leaked by notes_tree_insert.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c