removed typing error (! missing in md_return_alloc)