fix memory leak on dot execution stack error