pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:2009:   static int num_pike_frame_chunks;   static int num_pike_frames;      PMOD_EXPORT void really_free_pike_frame( struct pike_frame *X )   {    do_free_object(X->current_object);    if(X->current_program)    free_program(X->current_program);    if(X->scope)    free_pike_scope(X->scope); -  DO_IF_DEBUG( -  if(X->flags & PIKE_FRAME_MALLOCED_LOCALS) -  Pike_fatal("Pike frame is not supposed to have malloced locals here!\n")); +  if (X->flags & PIKE_FRAME_MALLOCED_LOCALS) { +  free_svalue(X->locals-1); +  X->locals = NULL; +  X->flags &= ~PIKE_FRAME_MALLOCED_LOCALS; +  }    if (X->flags & PIKE_FRAME_SAVE_LOCALS) {    free(X->save_locals_bitmask);    X->flags &= ~PIKE_FRAME_SAVE_LOCALS;    }    DO_IF_DMALLOC(    X->current_program=0;    X->context=0;    X->scope=0;    X->current_object=0;    X->flags=0;