summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-24 22:19:26 +0200
committerMichael Adam <obnox@samba.org>2008-09-27 22:28:26 +0200
commit33d18c76f1bf5e10b52e873af5b29fabd1db7f3c (patch)
tree0633893762212666f7eeb4ebaa6c39d760a1bf76 /source3
parent612aa3915f92a4309d24f9ba7f33f26c275fab48 (diff)
downloadsamba-33d18c76f1bf5e10b52e873af5b29fabd1db7f3c.tar.gz
samba-33d18c76f1bf5e10b52e873af5b29fabd1db7f3c.tar.bz2
samba-33d18c76f1bf5e10b52e873af5b29fabd1db7f3c.zip
[s3]loadparm: fix memory error - free the right param_opt->list in copy_service.
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 74dff837c0..dbfd5853f5 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -6487,7 +6487,7 @@ static void copy_service(struct service *pserviceDest, struct service *pserviceS
/* If we already have same option, override it */
if (strwicmp(pdata->key, data->key) == 0) {
string_free(&pdata->value);
- TALLOC_FREE(data->list);
+ TALLOC_FREE(pdata->list);
pdata->value = SMB_STRDUP(data->value);
not_added = False;
break;