Fixed a memory leak.

I was fixed memory leak. Please review.