diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-22 03:09:59 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-22 04:55:53 +0200 |
commit | 60d9afa806e21bb932336f53842af9a5405ff588 (patch) | |
tree | 9defcfe941c8870b80ddf785af3353520ae984aa | |
parent | 7e4e4d09099c5b381a4474dcc94c6a234501b1a9 (diff) | |
download | samba-60d9afa806e21bb932336f53842af9a5405ff588.tar.gz samba-60d9afa806e21bb932336f53842af9a5405ff588.tar.bz2 samba-60d9afa806e21bb932336f53842af9a5405ff588.zip |
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
-rw-r--r-- | source4/libcli/finddcs_cldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index 6dd0a2f1a6..8199e37510 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -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; |