fix memory leak in DSR protocol