Better leak than double free

This commit is contained in:
pancake 2024-03-21 09:51:06 +01:00
parent 86e0f2c009
commit a5ef4bbd10
1 changed files with 1 additions and 2 deletions

View File

@ -4559,8 +4559,7 @@ R_API bool r_core_visual_graph(RCore *core, RAGraph *g, RAnalFunction *_fcn, int
if (root) {
RGraph *dg = r_graph_dom_tree (g->graph, root);
if (dg) {
R_LOG_INFO ("pwn");
r_graph_free (g->graph);
// XXX double free - r_graph_free (g->graph);
g->graph = dg;
} else {
R_LOG_WARN ("Cannot compute the dominance tree");