fix memory leak in resender