This function is not simply equivalent to the C free() function, since if the pointer has been registered
(using cnfRegp
) for use by both C and FORTRAN, then it will be unregistered before the space is
freed. All pointers to space allocated by cnfCalloc
and cnfMalloc
are automatically registered in this
way, so cnfFree
should always be used to free them.
It is also safe to free unregistered pointers with this function.