# _CP_str_free

_CP_str_free releases the CPSTR* string
back to the string pool to be allocated at a later time. All CPSTR*s
must eventually be released with _CP_str_free.

## Syntax

```
_CP_str_free(CPSTR* string)
```
Tip: Failure to free CPSTR*s when finished with
them causes memory to be used unnecessarily.

## See also

- [C functions overview](https://d3codex.com/cfunctions/c-functions-overview/)
- [_CP_str_alloc](https://d3codex.com/cfunctions/cp-str-alloc/)
- [_CP_str_realloc](https://d3codex.com/cfunctions/cp-str-realloc/)

---
Source: https://d3codex.com/cfunctions/cp-str-free/ - part of the D3Codex reference.
