Fixed memory leak in StmtCacheMap.