mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:smb_server/smb/trans2.c - "talloc_move" isn't strictly necessary here
Since the "set" will be free'd afterwards "talloc_steal" is enough. Reviewed-by: Tridge
This commit is contained in:
parent
72833e416f
commit
05a9b7c32d
@ -1487,7 +1487,7 @@ static NTSTATUS dodc_or_sysvol_referral(TALLOC_CTX *ctx,
|
||||
NT_STATUS_HAVE_NO_MEMORY_AND_FREE(dc_list, context);
|
||||
|
||||
for(j=0; j<set[i]->count; j++) {
|
||||
dc_list[num_dcs + j] = talloc_move(context, &set[i]->names[j]);
|
||||
dc_list[num_dcs + j] = talloc_steal(context, set[i]->names[j]);
|
||||
}
|
||||
num_dcs = num_dcs + set[i]->count;
|
||||
TALLOC_FREE(set[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user