Allocate data returned by pkcs7_t.get_attribute()