I have more uncommitted changes where I'm using delete_last() as suggested. Unfortunately delete_last seems not to be working properly for more then one delete in a row. At the same time I have raised the issue with possible memory leak.

I am using lru for managing huge chunks of data in memory and this is a show stopper for me.