Fixup for 'Heap: release some memory to the RAM session'

Fixes #1267