Branch: Tag:

2019-09-18

2019-09-18 13:08:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Fixed erroneous zapping of malloced locals.

2344:    free(frame->save_locals_bitmask);       frame->num_locals = num_new_locals; -  } else { +  } else if (!(frame->flags & PIKE_FRAME_MALLOCED_LOCALS)) {    frame->locals = NULL; -  +  frame->num_locals = 0;    }       frame->next=0;
2385:    free_array(a);    scope->locals = NULL;    - #ifdef PIKE_DEBUG -  scope->flags&=~PIKE_FRAME_MALLOCED_LOCALS; - #endif +  scope->flags &= ~PIKE_FRAME_MALLOCED_LOCALS;    }    really_free_pike_frame(scope);   }