fix: memory leaks of merged child segment has been fixed.