summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;