pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:3398:    struct svalue sv;    low_object_index_no_free(&sv, o, fun);    frame_setup_from_svalue(frame, &sv);    free_svalue(&sv);    return;    }    default:    Pike_error("Unknown identifier type.\n");    }    +  /* NOTE: there is no need to call free here, since +  * these references have been added in the same place +  */ +  if (frame->current_program) +  sub_ref(frame->current_program); +  if (frame->current_object) +  sub_ref(frame->current_object);    add_ref(frame->current_program = p);    add_ref(frame->current_object = o);    frame->ident = ref->identifier_offset;    frame->fun = fun;    frame->context = context;   }      void frame_setup_from_svalue(struct pike_frame * frame, const struct svalue * sv) {    unsigned INT16 type = TYPEOF(*sv);    unsigned INT16 subtype = SUBTYPEOF(*sv);