formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Memory

fz_mem_zone_free

Description

Disposes of a memory block. This will release a memory block back to the mem zone. The mem zone can be either static or dynamic, or NULL. If the mem zone is NULL, the call is the same a . The memory must be freed using the same mem zone that it was allocated with.

Plugin Prototype

fzrt_error_td fz_mem_zone_free(

fzrt_zone_ptr

zone_ptr,

fzrt_ptr *

ptr )

Parameters

zone_ptr [Input]

mem zone to allocate memory from, NULL to release from

ptr [Input]

pointer to memory to release

Returns

FZRT_NOERR on success, error ID otherwise.

Availability

5.0.0.0

See Also

, fz_mem_zone_static_init, fz_mem_zone_alloc

Function Set

fz_fzrt_mem_fset


Defined in

fzrt_api.h