misc/alloc-monitor.c
static void add(void *ptr) {
    struct list *l;

    LOCK(heap_pointers_lock);
    l = (struct list*)real_malloc(sizeof(struct list));
    if (!l)
        DIE("Alloc Monitor: Failed to allocate memory for new internal "
            "resource.\n");
    l->value = ptr;
    l->next = heap_pointers;
    heap_pointers = l;
    UNLOCK(heap_pointers_lock);
}
/* Adds a pointer to the list of allocated pointers. */
Adds a pointer to the list of allocated pointers.
Adds a pointer to the list of allocated pointers .
static void add(void *ptr) {
    struct list *l;
    LOCK(heap_pointers_lock);
    l = (struct list*)real_malloc(sizeof(struct list));
    if (!l)
        DIE("Alloc Monitor: Failed to allocate memory for new internal "
            "resource.\n");
    l->value = ptr;
    l->next = heap_pointers;
    heap_pointers = l;
    UNLOCK(heap_pointers_lock);
}
static void add ( void * ptr ) { struct list * l ; LOCK ( heap_pointers_lock ) ; l = ( struct list * ) real_malloc ( sizeof ( struct list ) ) ; if ( ! l ) DIE ( " " " \n " ) ; l -> value = ptr ; l -> next = heap_pointers ; heap_pointers = l ; UNLOCK ( heap_pointers_lock ) ; }
Adds a pointer to the list of allocated pointers.
Adds a pointer to the list of allocated pointers .