# Guidance for NDK API memory release

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/guidance_for_ndk_api_memory_release.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/guidance_for_ndk_api_memory_release.html)

If an out parameter of a native API is `blob/vector<blob>/blob `in
        struct, the application needs to deallocate memory of `data(uint8_t*)` in
        blob using the `delete` operator to avoid a memory leak.

**Parent Topic:** [QESDK Native API](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_api.html)

Last Published: Nov 14, 2024

[Previous Topic
qesdk\_type\_t enum](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/native_type_t_enum.md) [Next Topic
Example code](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/native_example_code.md)