<p>How can i release the memory that I used for a variable (e.g. a long string) in C?</p>

Assuming that you allocated the memory dynamically (using
```
malloc
```
or another memory allocator) you free it using
```
free
```
. If the memory was statically allocated, you can't free it.