Fix memory leak caused by not releasing request object.