From 93aeacca3061b490e77047e08def107c6ab1f7b2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Jan 2016 13:40:03 -0800 Subject: cmark_node_replace - unlink, but don't free, oldnode. --- src/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index ee1d6c3..26a8e25 100644 --- a/src/node.c +++ b/src/node.c @@ -734,7 +734,7 @@ int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode) { if (!cmark_node_insert_before(oldnode, newnode)) { return 0; } - cmark_node_free(oldnode); // free calls cmark_node_unlink + cmark_node_unlink(oldnode); return 1; } -- cgit v1.2.3