Branch: Tag:

2008-08-13

2008-08-13 21:11:58 by Martin Stjernholm <mast@lysator.liu.se>

Fixed cleanup to work with the "external refs after unregister" debug
check.

Rev: src/program.c:1.742

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.741 2008/08/13 18:02:02 mast Exp $ + || $Id: program.c,v 1.742 2008/08/13 21:11:58 mast Exp $   */      #include "global.h"
8011:    SAFE_APPLY_MASTER("unregister",1);    pop_stack();    +  /* Free the target here to avoid false alarms in the debug check +  * below. */ +  free_program (c->target); +  c->target = NULL; +    #ifdef PIKE_DEBUG    if (p->refs > 1) {    /* Other programs can have indexed out constants from p, which