Branch: Tag:

2002-11-25

2002-11-25 00:52:18 by Martin Stjernholm <mast@lysator.liu.se>

Fixed proper cleanup of dmalloc itself on exit, to please external memory
checkers.

Rev: src/dmalloc.h:1.40
Rev: src/main.c:1.158
Rev: src/pike_memory.c:1.129

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: main.c,v 1.157 2002/10/11 13:18:09 grubba Exp $ + || $Id: main.c,v 1.158 2002/11/25 00:52:18 mast Exp $   */      #include "global.h" - RCSID("$Id: main.c,v 1.157 2002/10/11 13:18:09 grubba Exp $"); + RCSID("$Id: main.c,v 1.158 2002/11/25 00:52:18 mast Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
746:    exit_modules();      #ifdef DEBUG_MALLOC -  { -  extern void cleanup_memhdrs(void); +     cleanup_memhdrs(); -  } +  cleanup_debug_malloc();   #endif