pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:3391:    free_string(Pike_compiler->last_identifier);    Pike_compiler->last_identifier=0;    }       if(Pike_compiler->last_file)    {    free_string(Pike_compiler->last_file);    Pike_compiler->last_file=0;    }    +  if (Pike_compiler->current_attributes) { +  free_node(Pike_compiler->current_attributes); +  Pike_compiler->current_attributes = NULL; +  } +     unuse_modules(Pike_compiler->num_used_modules);       free_all_nodes();       ba_destroy(&Pike_compiler->node_allocator);   }      int sizeof_variable(int run_time_type)   {    switch(run_time_type)
pike.git/src/program.c:8769:    c->p = NULL;    }    if(c->placeholder) {    free_object(c->placeholder);    c->placeholder = NULL;    }    if(c->lex.current_file) {    free_string(c->lex.current_file);    c->lex.current_file = NULL;    } +  if(c->lex.attributes) { +  free_node(c->lex.attributes); +  c->lex.attributes = NULL; +  }    if (c->resolve_cache) {    free_mapping(c->resolve_cache);    c->resolve_cache = NULL;    }    free_svalue(& c->default_module);    SET_SVAL(c->default_module, T_INT, NUMBER_NUMBER, integer, 0);    free_supporter(&c->supporter);    verify_supporters();   }   
pike.git/src/program.c:8795:       if (c->resolve_cache) {    free_mapping(c->resolve_cache);    c->resolve_cache = 0;    }       c->lex.current_line=1;    free_string(c->lex.current_file);    c->lex.current_file=make_shared_string("-");    +  c->lex.attributes = NULL; +     if (runtime_options & RUNTIME_STRICT_TYPES)    {    c->lex.pragmas = ID_STRICT_TYPES;    } else {    c->lex.pragmas = 0;    }       c->lex.end = c->prog->str + (c->prog->len << c->prog->size_shift);       switch(c->prog->size_shift)