Branch: Tag:

2003-03-15

2003-03-15 16:18:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

More dmalloc fixes.

Rev: src/apply_low.h:1.17
Rev: src/block_alloc.h:1.64
Rev: src/pike_types.c:1.212

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: pike_types.c,v 1.211 2003/03/14 15:50:46 grubba Exp $ + || $Id: pike_types.c,v 1.212 2003/03/15 16:18:32 grubba Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.211 2003/03/14 15:50:46 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.212 2003/03/15 16:18:32 grubba Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"
219:      void debug_free_type(struct pike_type *t)   { + #ifdef DEBUG_MALLOC +  if (t == (struct pike_type *)(size_t)0x55555555) { +  Pike_fatal("Freeing dead type.\n"); +  } + #endif /* DEBUG_MALLOC */    loop:    if (!sub_ref(t)) {    unsigned INT32 hash = t->hash % pike_type_hash_size;