FreeBuf

Frees memory allocated by the SDK (e.g., strings or buffers returned from functions).

void FreeBuf(void* p)

Parameters

  • p: Pointer returned by the SDK.

Return Value

Frees memory allocated by the SDK

Example

// example

char* s = GetVersionInfo();
if (s) {
    puts(s);
    FreeBuf(s);
}

Last updated

Was this helpful?