git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
612aa39
)
[s3]loadparm: fix memory error - free the right param_opt->list in copy_service.
author
Michael Adam
<obnox@samba.org>
Wed, 24 Sep 2008 20:19:26 +0000
(22:19 +0200)
committer
Michael Adam
<obnox@samba.org>
Sat, 27 Sep 2008 20:28:26 +0000
(22:28 +0200)
Michael
source3/param/loadparm.c
patch
|
blob
|
history
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 74dff837c01777e3839417646150fac28d8c96a1..dbfd5853f51c148c6290d3adadbe53b33d45c005 100644
(file)
--- 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(
p
data->list);
pdata->value = SMB_STRDUP(data->value);
not_added = False;
break;