Merging can fail partway, leaving a somewhat inconsistent graph. This is
safe, since an inconsistent graph must be discarded as infeasible. But
this is a problem when dumping the modification order graph, since we
may dereference freed nodes. So for now, just don't free them.
}
erasePromiseNode(promise);
- delete p_node;
+ /* Not deleting p_node, to maintain consistency if mergeNodes() fails */
return !hasCycles;
}