diff options
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 0cd92c16f1..6789aa1ac2 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2286,9 +2286,9 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lp_do_global_parameter(lp_ctx, "socket options", "TCP_NODELAY"); #endif lp_do_global_parameter(lp_ctx, "workgroup", DEFAULT_WORKGROUP); - myname = get_myname(); + myname = get_myname(lp_ctx); lp_do_global_parameter(lp_ctx, "netbios name", myname); - SAFE_FREE(myname); + talloc_free(myname); lp_do_global_parameter(lp_ctx, "name resolve order", "wins host bcast"); lp_do_global_parameter(lp_ctx, "fstype", "NTFS"); |