revision: free topo_walk_info before creating a new one in init_topo_walk
authorMike Hommey <redacted>
Fri, 22 Nov 2019 08:37:04 +0000 (17:37 +0900)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
revision.c
git clone https://git.99rst.org/PROJECT