This commit is contained in:
krahets
2024-01-03 17:56:11 +08:00
parent ac953ef830
commit fc3c3c6400
4 changed files with 6 additions and 4 deletions

View File

@@ -1387,6 +1387,8 @@ comments: true
} else {
pre->right = child;
}
// 释放内存
free(cur);
} else {
/* 子节点数量 = 2 */
// 获取中序遍历中 cur 的下一个节点