From: wessels <> Date: Wed, 5 Jan 2000 13:23:44 +0000 (+0000) Subject: Changed leakFree() to use the __FILE__, __LINE__ macro so we can X-Git-Tag: SQUID_3_0_PRE1~2092 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b119175e6a8e36f4b30c8f8e26a2519e4049852e;p=thirdparty%2Fsquid.git Changed leakFree() to use the __FILE__, __LINE__ macro so we can print that info when debugging. --- diff --git a/src/leakfinder.cc b/src/leakfinder.cc index 5b675ce273..b6e6b69a8d 100644 --- a/src/leakfinder.cc +++ b/src/leakfinder.cc @@ -1,6 +1,6 @@ /* - * $Id: leakfinder.cc,v 1.1 1998/12/11 21:01:12 wessels Exp $ + * $Id: leakfinder.cc,v 1.2 2000/01/05 06:23:44 wessels Exp $ * * DEBUG: section 45 Callback Data Registry * AUTHOR: Duane Wessels @@ -98,7 +98,7 @@ leakTouchFL(void *p, const char *file, int line) } void * -leakFree(void *p) +leakFreeFL(void *p, const char *file, int line) { ptr *c = (ptr *) hash_lookup(htable, p); assert(p); diff --git a/src/protos.h b/src/protos.h index bb09be2e5d..7f4f2ffdab 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.349 1999/12/30 17:36:46 wessels Exp $ + * $Id: protos.h,v 1.350 2000/01/05 06:23:45 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -1220,7 +1220,7 @@ extern void helperFree(helper *); extern void leakInit(void); extern void *leakAddFL(void *, const char *, int); extern void *leakTouchFL(void *, const char *, int); -extern void *leakFree(void *); +extern void *leakFreeFL(void *, const char *, int); #endif /* diff --git a/src/squid.h b/src/squid.h index 7d3c8c3d64..8d114ddea6 100644 --- a/src/squid.h +++ b/src/squid.h @@ -1,6 +1,6 @@ /* - * $Id: squid.h,v 1.197 2000/01/03 19:39:16 wessels Exp $ + * $Id: squid.h,v 1.198 2000/01/05 06:23:46 wessels Exp $ * * AUTHOR: Duane Wessels * @@ -323,6 +323,7 @@ struct rusage { #if USE_LEAKFINDER #define leakAdd(p) leakAddFL(p,__FILE__,__LINE__) #define leakTouch(p) leakTouchFL(p,__FILE__,__LINE__) +#define leakFree(p) leakFreeFL(p,__FILE__,__LINE__) #else #define leakAdd(p) p #define leakTouch(p) p