Bug fix for tmp blocks not being freed.