---
title: releaseOutput
description: "在计算完成后用于释放DG_TeeOutput。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcctrustzone/tee/kcal/kunpeng_kcal_16_0026.html
sourcePath: /source/zh/kunpengcctrustzone/tee/kcal/kunpeng_kcal_16_0026.html
indexId: 126c17148af4f3038700673d4f837b03683e3be4fb56cb9332e13f10cade597f64
---
# releaseOutput

在计算完成后用于释放DG_TeeOutput。

```
void ReleaseOutput(
DG_TeeOutput **share
)
```

#### 参数


**表1 参数说明**

| 参数名 | 描述 | 取值范围 | 输入/输出 |
| --- | --- | --- | --- |
| DG\_TeeOutput | 承载计算结果 | 一级指针和二级指针不能为NULL | 输入 |


#### 返回值

无


#### 错误码

无


#### 依赖

依赖调用reveal的返回结果。


#### 示例

和revealShare配套使用，此接口用于释放计算结果，调用完revealShare，释放output时需要调用此接口。


```
#include  "data_guard_mpc.h"
DG_TeeOutput *output = nullptr;
int res = aritOpts.revealShare(dgTee, share_out, &output);
aritOpts.releaseOutput(&share1);
```

计算结果：无返回值。
