logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

SDL_free - Free allocated memory.

Availability

       This function is available since SDL 3.2.0.

Description

       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.

Name

       SDL_free - Free allocated memory.

See Also

SDL_malloc(3), SDL_calloc(3), SDL_realloc(3)

Simple Directmedia Layer                           SDL 3.2.20                                        SDL_free(3)

Synopsis

#include<SDL3/SDL_stdinc.h>voidSDL_free(void*mem);

Thread Safety

       It is safe to call this function from any thread.

See Also