CHH3213 / chhRobotics_CPP

自动驾驶规划控制常用算法c++代码实现
787 stars 246 forks source link

new开辟堆上内存好像没有释放 #8

Open woyidingqu opened 11 months ago

woyidingqu commented 11 months ago

Node start_node = new Node(calXyIndex(sx,min_x), calXyIndex(sy,min_y),0.0,-1); Node goal_node = new Node(calXyIndex(gx,min_x), calXyIndex(gy,min_y),0.0,-1);

woyidingqu commented 11 months ago

A星算法中

CHH3213 commented 11 months ago

Node start_node = new Node(calXyIndex(sx,min_x), calXyIndex(sy,min_y),0.0,-1); Node goal_node = new Node(calXyIndex(gx,min_x), calXyIndex(gy,min_y),0.0,-1);

哎是的,当时写代码的时候没有注意这方面,可能有好几个地方都是这样😂😂