summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-24 17:27:54 +0100
committerVolker Lendecke <vl@sernet.de>2007-12-05 14:39:07 +0100
commit78c6ee0090f4122bc25baaacb5546517ad4b7bc6 (patch)
tree7b45cf85ff927e70552782b65bd73e50a637195f /source3/param
parent66af0700396a5a5245aa25c95d70a620025b29c9 (diff)
downloadsamba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.tar.gz
samba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.tar.bz2
samba-78c6ee0090f4122bc25baaacb5546517ad4b7bc6.zip
Remove some globals
(This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 16c6c59c7d..dcb9b243f4 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4240,9 +4240,12 @@ static void print_parameter(struct parm_struct *p, void *ptr, FILE * f)
fprintf(f, "%c", *(char *)ptr);
break;
- case P_OCTAL:
- fprintf(f, "%s", octal_string(*(int *)ptr));
+ case P_OCTAL: {
+ char *o = octal_string(*(int *)ptr);
+ fprintf(f, "%s", o);
+ TALLOC_FREE(o);
break;
+ }
case P_LIST:
if ((char ***)ptr && *(char ***)ptr) {