The xmalloc/xfree functions from YAZ are used to manage memory.