]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Changed leakFree() to use the __FILE__, __LINE__ macro so we can
authorwessels <>
Wed, 5 Jan 2000 13:23:44 +0000 (13:23 +0000)
committerwessels <>
Wed, 5 Jan 2000 13:23:44 +0000 (13:23 +0000)
print that info when debugging.

src/leakfinder.cc
src/protos.h
src/squid.h

index 5b675ce273e197da40f0a7ce97808170d3ae7eb3..b6e6b69a8de1ceb2c67dd56d0c5487e7a6925dcd 100644 (file)
@@ -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);
index bb09be2e5d0ab86d569aa2edfc2f161f8df725dd..7f4f2ffdab5545a48ba3e687fc530d7fc5420451 100644 (file)
@@ -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
 
 /*
index 7d3c8c3d649201618297df70ca02c1a8e83a9ff4..8d114ddea6d3d02b5a6d0514bcc1e791cf070092 100644 (file)
@@ -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