Skip to main content

Name

ec_mt_free — Reclaim allocated memory

Synopsis

#include "ec_malloc.h"

| void **ec_mt_free** ( | def, |   | |   | ptr, |   | |   | size); |   |

struct ec_mem_type_def * <var class="pdparam">def</var>; void * <var class="pdparam">ptr</var>; size_t <var class="pdparam">size</var>;

Description

**Configuration Change. ** This feature is available starting from Momentum 3.0.18.

Reclaim allocated memory.

Note

This performs a raw free against the allocator backend. Do not call this function directly, ec_free will call it at the appropriate time.

def

The memory type. For more information about memory types see Memory Types.

ptr

A void pointer to the memory location.

size

The amount of memory to allocate.

Was this page helpful?