When a memory file index node is freed, the resources for that node (index semaphore or reader/writer lock and temporary key expansion buffers, if allocated) are not freed. The logic has been modified to free resources before freeing a memory index buffer.