summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-02-16 19:34:58 +0000
committerTim Potter <tpot@samba.org>2002-02-16 19:34:58 +0000
commit98e97fac17b766a6da658daa1ec40ffaf6f5bb2e (patch)
tree7a1bb37b2c190eaeff28b56980ed453b4534b34c
parent3fb3bc0a1546dadb24231065b422349bd199e1bf (diff)
downloadsamba-98e97fac17b766a6da658daa1ec40ffaf6f5bb2e.tar.gz
samba-98e97fac17b766a6da658daa1ec40ffaf6f5bb2e.tar.xz
samba-98e97fac17b766a6da658daa1ec40ffaf6f5bb2e.zip
Added comment in lp_string() about debugging memory problems.
-rw-r--r--source/param/loadparm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index a44b788a5dd..8a9987ee1d2 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -1410,6 +1410,15 @@ static char *lp_string(const char *s)
size_t len = s ? strlen(s) : 0;
char *ret;
+ /* The follow debug is useful for tracking down memory problems
+ especially if you have an inner loop that is calling a lp_*()
+ function that returns a string. Perhaps this debug should be
+ present all the time? */
+
+#if 0
+ DEBUG(10, ("lp_string(%s)\n", s));
+#endif
+
if (!lp_talloc)
lp_talloc = talloc_init_named("lp_talloc");