heap_pointer is reset to old value in print.c functions, do not do any
deref_db_ptr(which may call heap_alloc) while in print.c functions.

