Fix a memory leak.

Xcode5's static analyzer tells that there exists a memory leak. This pull request will fix the issue. Could you please review and merge if it causes no other issue?