Fix resource leak.
Merge pull request #43 from rabitarochan/fix/wiki-resourceleak

Fix resource leak.