---
title: 函数：destroy_data_buffer
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0017.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0017.html
indexId: 241e924a6a98e862f54b0c7e220237583b6276a2af859a22b65fe03407bc371771
---
# 函数：destroy_data_buffer

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

销毁aclDataBuffer类型的数据。

此处仅销毁aclDataBuffer类型的数据，调用acl.create_data_buffer接口创建aclDataBuffer类型数据时传入的data的内存需由用户自行释放。


#### 函数原型

- C函数原型
  1 aclError aclDestroyDataBuffer(const aclDataBuffer *dataBuffer)

- python函数
  1 ret = acl.destroy_data_buffer(data_buffer)


#### 参数说明

| 参数名 | 说明 |
| --- | --- |
| data\_buffer | int，表示aclDataBuffer的指针地址。 |


#### 返回值说明

| 返回值 | 说明 |
| --- | --- |
| ret | int，错误码。 返回0表示成功。 返回其它值表示失败。 |
