summaryrefslogtreecommitdiff
path: root/source3/param
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
commit3e5efdb05c91dff204967d1e8dd33a86ab2602f2 (patch)
tree8ca2903825cd899a9462ebf3ccf14ba2bb84f15d /source3/param
parentd58af01dcc1c0c872d9d376b58f812b81e7adf1d (diff)
downloadsamba-3e5efdb05c91dff204967d1e8dd33a86ab2602f2.tar.gz
samba-3e5efdb05c91dff204967d1e8dd33a86ab2602f2.tar.bz2
samba-3e5efdb05c91dff204967d1e8dd33a86ab2602f2.zip
Added comment in lp_string() about debugging memory problems.
(This used to be commit 98e97fac17b766a6da658daa1ec40ffaf6f5bb2e)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index a44b788a5d..8a9987ee1d 100644
--- a/source3/param/loadparm.c
+++ b/source3/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");