informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_free()

The mi_free() routine frees the memory that was previously allocated with the mi_alloc(), mi_dalloc(), or mi_zalloc() function.

Syntax

Usage

The mi_free() function frees the memory that ptr references. This function behaves just like the free() system call, except that it frees memory that one of the DataBlade API memory-management routines has allocated. The mi_free() function does not free memory allocated with malloc().

In client LIBMI applications, you must call mi_free() to free memory that it has allocated with mi_alloc(), mi_dalloc(), or mi_zalloc(). Otherwise, this memory is not freed until the client LIBMI application exits. The database server does not automatically free memory for client LIBMI applications.

Return Values

None.

Related Topics

See the descriptions of the following functions: mi_alloc(), mi_dalloc(), mi_switch_mem_duration(), and mi_zalloc().


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved