| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following functions act as their libc counterparts. The allocated
memory is associated with the mach argument and is automatically
freed upon the call to sieve_machine_destroy (mach).
NULL, the call is equivalent to
sieve_malloc(mach, size); if size is equal to
zero, the call is equivalent to sieve_mfree(ptr). Unless
ptr is NULL, it must have been returned by an earlier
call to sieve_malloc() or sieve_mrealloc().
sieve_mfree() frees the memory space pointed to by ptr and
detaches it from the destructor list of mach. The ptr must
have been returned by a previous call to sieve_malloc() or
sieve_mrealloc(). Otherwise, or if sieve_mfree(ptr)
has already been called before, undefined behaviour occurs.
If ptr is NULL, no operation is performed.