preliminary support for malloc/free of structs