---
name: "free_config_entries"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/free_config_entries/3alleg4"
---

# free\_config\_entries(3alleg4)

Frees memory allocated for config entry lists. Allegro game programming library.

## NAME

free\_config\_entries - Frees memory allocated for config entry lists. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int free\_config\_entries(const char \*\*\*names);**

## DESCRIPTION

Once you are done with the string arrays filled in by list\_config\_entries and list\_config\_sections, you can free them again with this function. The passed array pointer will be set to NULL, and you directly can pass the same pointer again to list\_config\_entries or list\_config\_sections later - but you also could pass them again without freeing first, since the memory is re-allocated when the pointer is not NULL.

See list\_config\_entries for an example of how to use it.

## SEE ALSO

**list\_config\_entries**(3alleg4), **list\_config\_sections**(3alleg4)
