1
0
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:
Volker Lendecke 2015-09-29 20:42:58 +02:00 committed by Jeremy Allison
parent 348dd41871
commit e119f95532

View File

@ -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())