---
name: "cgiFree"
section: "3"
platform: "linux"
package: "cgilib"
version: "0.6-1.1+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/man/cgiFree"
---

# cgiFree(3)

Frees CGI data structure

## NAME

cgiFree - Frees CGI data structure

## SYNOPSYS

```
#include <cgi.h>

void cgiFree (s_cgi *parms);
```

## DESCRIPTION

This routine frees memory allocated by CGI parsing routines. Temporary files from CGI file upload are also removed. This is the opposite of [**cgiInit**(3)](/man/cgiInit/3.md).

After this routine was called, no variables, cookies, files and no additional header lines are available.  The result type is also reset to "text/html".

## AUTHOR

This CGI library is written by Martin Schulze \<joey@infodrom.org\>.  If you have additions or improvements please get in touch with him.

## SEE ALSO

[**cgiInit**(3)](/man/cgiInit/3.md), [**cgiDebug**(3)](/man/cgiDebug/3.md), [**cgiHeader**(3)](/man/cgiHeader/3.md), [**cgiSetHeader**(3)](/man/cgiSetHeader/3.md), [**cgiSetType**(3)](/man/cgiSetType/3.md), [**cgiGetValue**(3)](/man/cgiGetValue/3.md), [**cgiGetVariables**(3)](/man/cgiGetVariables/3.md) [**cgiGetCookie**(3)](/man/cgiGetCookie/3.md), [**cgiGetCookies**(3)](/man/cgiGetCookies/3.md).
