Fix typo.
Fix style.
Plug memory leak made by my recent changes.