---
name: "al_free_with_context"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_free_with_context"
---

# al\_free\_with\_context(3)

Allegro 5 API

## NAME

al\_free\_with\_context - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_free_with_context(void *ptr,
     int line, const char *file, const char *func)
  ```

## DESCRIPTION

This calls free() from the Allegro library (this matters on Windows), unless overridden with [al\_set\_memory\_interface(3)](/al_set_memory_interface/3.md).

Generally you should use the [al\_free(3)](/al_free/3.md) macro.
