Fix memory leak in TMap.
Merge pull request #95 from ahmedcharles/tmap_leak

Fix memory leak in TMap.