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

# unload\_datafile(3alleg4)

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**(3alleg4), **excustom**(3alleg4), **exdata**(3alleg4), **exexedat**(3alleg4), **exgui**(3alleg4), **exsprite**(3alleg4), **exunicod**(3alleg4)
