diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-10-09 23:23:45 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-10-11 13:41:35 +1100 |
commit | 8f2741ba1ad0a300c6c044c363d2278573b1a4ca (patch) | |
tree | 03d2ef3abb46ef5a71016c52e0d558a9bcf0cb88 /lib/param/loadparm.c | |
parent | 1b81af0d56014275a4aece81325fdfe4b3cd699b (diff) | |
download | samba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.tar.gz samba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.tar.xz samba-8f2741ba1ad0a300c6c044c363d2278573b1a4ca.zip |
lib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 includes.h
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r-- | lib/param/loadparm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 999238e21ad..2c47193415d 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; } |