---
name: "unload_datafile"
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/unload_datafile"
---

# unload\_datafile(3alleg)

Frees all the objects in a datafile. Allegro game programming library.

## NAME

unload\_datafile - Frees all the objects in a datafile. Allegro game programming library.

## SYNOPSIS

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

**void unload\_datafile(DATAFILE \*dat);**

## DESCRIPTION

Frees all the objects in a datafile. Use this to avoid memory leaks in your program.

## SEE ALSO

[**load\_datafile**(3alleg)](/load_datafile/3alleg.md), [**excustom**(3alleg)](/excustom/3alleg.md), [**exdata**(3alleg)](/exdata/3alleg.md), [**exexedat**(3alleg)](/exexedat/3alleg.md), [**exgui**(3alleg)](/exgui/3alleg.md), [**exsprite**(3alleg)](/exsprite/3alleg.md), [**exunicod**(3alleg)](/exunicod/3alleg.md)
