> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-native-c/functions/freebuf.md).

# FreeBuf

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

```c
void FreeBuf(void* p)
```

***

## Parameters

* p: Pointer returned by the SDK.

## Return Value

Frees memory allocated by the SDK

## Example

```c
// example

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


```
