| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

mem_freeall

#include "sflmem.h"
void
mem_freeall (void)

Synopsis

Frees all allocated memory. This function is rather brutal and can do strange things to an application. It can be useful when you are trying to recover control in a crashed application, and need to free all allocated memory before restarting it.

Source Code - (sflmem.c)

{
    MEMTRN
        *trn;

    mem_free_list ((MEMHDR *) &mem_list.memhdr);
    while (!list_empty (&tr_list))
      {
        trn = tr_list.next;
        mem_free_list ((MEMHDR *) &trn-> memhdr);
        mem_del_trans (trn);
      }
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation