1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:finddcs_cldap: talloc free old memory before allocating a new netlogon struct

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct 22 04:55:54 CEST 2011 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2011-10-22 03:09:59 +02:00
parent 7e4e4d0909
commit 60d9afa806

View File

@ -227,6 +227,7 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state)
return;
}
TALLOC_FREE(state->netlogon);
state->netlogon = talloc_zero(state, struct cldap_netlogon);
if (tevent_req_nomem(state->netlogon, state->req)) {
return;