git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58af01
)
Added comment in lp_string() about debugging memory problems.
author
Tim Potter
<tpot@samba.org>
Sat, 16 Feb 2002 19:34:58 +0000
(19:34 +0000)
committer
Tim Potter
<tpot@samba.org>
Sat, 16 Feb 2002 19:34:58 +0000
(19:34 +0000)
(This used to be commit
98e97fac17b766a6da658daa1ec40ffaf6f5bb2e
)
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index a44b788a5dd3199d3a519ca7b876537a0bf395b0..8a9987ee1d205a52f68d0f4529c544b6a435b4b3 100644
(file)
--- 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");