]> git.ipfire.org Git - thirdparty/git.git/commit
revision: free topo_walk_info before creating a new one in init_topo_walk
authorMike Hommey <mh@glandium.org>
Fri, 22 Nov 2019 08:37:04 +0000 (17:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2019 02:48:48 +0000 (11:48 +0900)
commit0aa0c2b2ec12c91a122aec7a8497fe3577529eba
tree617be167f7d8719d3da6a00b74ab897af3a942c6
parentffa1f28fea000312ac917874db40f7b298458ef5
revision: free topo_walk_info before creating a new one in init_topo_walk

init_topo_walk doesn't reuse an existing topo_walk_info, and currently
leaks the one that might exist on the current rev_info if it was already
used for a topo walk beforehand.

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