Branch: Tag:

2004-09-02

2004-09-02 11:17:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added {d,debug_}malloc_accept_leak_fd().

Rev: src/dmalloc.h:1.51
Rev: src/pike_memory.c:1.153

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: dmalloc.h,v 1.50 2004/04/18 02:16:05 mast Exp $ + || $Id: dmalloc.h,v 1.51 2004/09/02 11:17:16 grubba Exp $   */      #ifndef DMALLOC_H
71: Inside #if defined(DEBUG_MALLOC)
  extern void dmalloc_free(void *p);   extern int debug_malloc_touch_fd(int, LOCATION);   extern int debug_malloc_register_fd(int, LOCATION); + extern void debug_malloc_accept_leak_fd(int);   extern int debug_malloc_close_fd(int, LOCATION);   extern int dmalloc_mark_as_free(void*,int);   
115:   void dmalloc_accept_leak(void *);   #define dmalloc_touch_fd(X) debug_malloc_touch_fd((X),DMALLOC_LOCATION())   #define dmalloc_register_fd(X) debug_malloc_register_fd((X),DMALLOC_LOCATION()) + #define dmalloc_accept_leak_fd(X) debug_malloc_accept_leak_fd(X)   #define dmalloc_close_fd(X) debug_malloc_close_fd((X),DMALLOC_LOCATION())      /* Beware, these do not exist without DMALLOC */
138:      #define dmalloc_touch_fd(X) (X)   #define dmalloc_register_fd(X) (X) + #define dmalloc_accept_leak_fd(X)   #define dmalloc_close_fd(X) (X)   #define dmfree(X) free((X))   #define dmalloc_accept_leak(X) (void)(X)