]> granicus.if.org Git - graphviz/commit
dotgen cluster: fix memory leaks by freeing data from removed rank leaders
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 18 Jul 2022 07:47:15 +0000 (09:47 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 25 Jul 2022 18:24:49 +0000 (20:24 +0200)
commit961575c6a5e7952273cf42a35b25159f775b958b
tree7910279c26f7654fc18fcdffe5e85288e763ed8b
parent0cdc32e9530416afffc73743a553a801dc717bd9
dotgen cluster: fix memory leaks by freeing data from removed rank leaders

The `build_skeleton` function inserts virtual nodes and edges into the
graph to be used by the clustering algorithms. The `expand_cluster`
function later installs real nodes or sub-clusters and deletes the
virtual nodes and edges by calling the `remove_rank_leaders` function
which removes these from the graph. However, it didn't free the data
allocated for them which caused several memory leaks.
CHANGELOG.md
lib/dotgen/cluster.c