---
name: "free_config_entries"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/free_config_entries"
---

# free\_config\_entries(3alleg)

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**(3alleg)](/list_config_entries/3alleg.md), [**list\_config\_sections**(3alleg)](/list_config_sections/3alleg.md)
