Branch: Tag:

2013-07-04

2013-07-04 12:30:19 by Arne Goedeke <el@laramies.com>

added valgrind macros for pike_frame and catch_context structs

1132:    else    {    data->prev = free_catch_context; +     num_free_catch_ctx++; -  +  PIKE_MEM_NA(*data);    free_catch_context = data;    }   }
1144:    {    num_free_catch_ctx--;    res = free_catch_context; +  PIKE_MEM_RW(res->prev);    free_catch_context = res->prev; -  +  PIKE_MEM_WO(*res);    }    else    {
1165:    struct catch_context *x = free_catch_context, *n;    while( x )    { +  PIKE_MEM_RW(x->prev);    n = x->prev;    free( x );    x = n;
1960:    DO_IF_SECURITY( X->current_creds=0; )    );    X->next = free_pike_frame; +  PIKE_MEM_NA(*X);    free_pike_frame = X;   }   
1969:    if( free_pike_frame )    {    res = free_pike_frame; +  PIKE_MEM_RW(res->next);    free_pike_frame = res->next; -  +  PIKE_MEM_WO(*res);    res->refs=0;    add_ref(res); /* For DMALLOC... */    res->flags=0;