Use ObjFW functions for memory management