SDL_free(3)

SDL_free3

Free allocated memory.

Usage

#include "SDL3/SDL.h"

void SDL_free(void *mem);

Header file

Defined in SDL3/SDL_stdinc.h

Overview

The pointer is no longer valid after this call and cannot be dereferenced anymore.

If mem is NULL, this function does nothing.

Function parameters

mem

a pointer to allocated memory, or NULL.

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.