mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
net: Fix some tiny memleaks
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
348dd41871
commit
e119f95532
@ -950,11 +950,11 @@ static struct functable net_func[] = {
|
||||
}
|
||||
|
||||
if (!c->opt_workgroup) {
|
||||
c->opt_workgroup = smb_xstrdup(lp_workgroup());
|
||||
c->opt_workgroup = talloc_strdup(c, lp_workgroup());
|
||||
}
|
||||
|
||||
if (!c->opt_target_workgroup) {
|
||||
c->opt_target_workgroup = smb_xstrdup(lp_workgroup());
|
||||
c->opt_target_workgroup = talloc_strdup(c, lp_workgroup());
|
||||
}
|
||||
|
||||
if (!init_names())
|
||||
|
Loading…
x
Reference in New Issue
Block a user