Home

Traffic Server Software Developers Kit

INKmalloc

Allocates memory.

Prototype

void* INKmalloc (unsigned int size)

Arguments

size is the number of bytes to allocate.

Description

Returns a pointer to size bytes of memory allocated from the heap. Traffic Server uses INKmalloc internally for memory allocations. Always use INKfree to release memory allocated by INKmalloc; do not use free.

Returns

A pointer to the newly-allocated memory.