Fix RegTypeCache typo/memory-leak.
Fix RegTypeCache typo/memory-leak.

Change-Id: I71df46d0baed37ba89129fa14697eb504194e770

treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst