regression fix: last patch wrote to constant memory pool

This could lead to abort on some platforms/compiler/system settings.