HIAI_DFree
Releases the memory that is allocated through the HiAI interface. This API is defined in c_graph.h.
Application scenario:
When memory is allocated using HIAI_DMalloc but the SendData interface is not called to send data, the memory must be released using the HIAI_DFree interface, unless the SendData interface has been called.
Syntax
HIAI_StatusT HIAI_DFree (void* dataBuffer)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
dataBuffer |
Pointer to the memory to be released |
- |
Return Value
For details about the returned error codes, see "Error Codes."
Error Codes
No. |
Error Code |
Description |
---|---|---|
1 |
HIAI_OK |
The running is OK. |
2 |
HIAI_GRAPH_NOT_EXIST |
The graph does not exist. |
3 |
HIAI_GRAPH_INVALID_VALUE |
The graph has an invalid value. |
4 |
HIAI_GRAPH_NOT_FIND_MEMORY |
The memory cannot be found. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot