diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 10:32:30 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 10:32:30 -0800 |
commit | bdcadff5dfb6f9513b7c109bf1523b6003406c53 (patch) | |
tree | ba888001c1ddc31cf73319d3b255c9cc7d563117 /src | |
parent | 8bcd1ff32b880b3bb51217ba2eed3d204f4cbae8 (diff) |
Removed unnecessary call to cmark_node_unlink in cmark_node_replace.
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -734,8 +734,7 @@ int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode) { if (!cmark_node_insert_before(oldnode, newnode)) { return 0; } - cmark_node_unlink(oldnode); - cmark_node_free(oldnode); + cmark_node_free(oldnode); // free calls cmark_node_unlink return 1; } |