Fixed path finding leak