free

Frees memory returned from an IMSL Math Library function.

Synopsis

free (data)

Required Arguments

void data (Input)
Data returned from an IMSL Math Library function.

Description

The function free frees memory using the C runtime library used by the IMSL Math Library for allocation. It is a wrapper around the standard C runtime function free.

Function free can always be used to free memory allocated by the IMSL Math Library, but is required if an application has linked to multiple copies of the C runtime library, with each copy having its own set of heap allocation structures. In this situation, using the C runtime function free can result in memory being allocated with one copy of the C runtime library and freed with a different copy, which may cause abnormal termination. Using free ensures that the same C runtime library is used for both allocation and freeing.

Note that free should be used only to free memory that was allocated by IMSL Math Library.