Fixed issue #1956. Memory leak in first level cache.