free()和destroy()之间的关系是不是template method?模板模式不是继承关系吗?