summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-09 23:23:45 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-11 13:41:35 +1100
commit8f2741ba1ad0a300c6c044c363d2278573b1a4ca (patch)
tree03d2ef3abb46ef5a71016c52e0d558a9bcf0cb88 /lib
parent1b81af0d56014275a4aece81325fdfe4b3cd699b (diff)
downloadsamba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.tar.gz
samba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.tar.bz2
samba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.zip
lib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 includes.h
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 999238e21a..2c47193415 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -2785,21 +2785,21 @@ bool lpcfg_set_option(struct loadparm_context *lp_ctx, const char *option)
char *p, *s;
bool ret;
- s = strdup(option);
+ s = talloc_strdup(NULL, option);
if (!s) {
return false;
}
p = strchr(s, '=');
if (!p) {
- free(s);
+ talloc_free(s);
return false;
}
*p = 0;
ret = lpcfg_set_cmdline(lp_ctx, s, p+1);
- free(s);
+ talloc_free(s);
return ret;
}