summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/finddcs_cldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c
index ec3bc25fb1..33e31a9cf7 100644
--- a/source4/libcli/finddcs_cldap.c
+++ b/source4/libcli/finddcs_cldap.c
@@ -214,6 +214,7 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq)
state = tevent_req_callback_data(subreq, struct finddcs_cldap_state);
status = cldap_netlogon_recv(subreq, state->netlogon, state->netlogon);
+ talloc_free(subreq);
if (!NT_STATUS_IS_OK(status)) {
state->srv_address_index++;
finddcs_cldap_next_server(state);
@@ -231,7 +232,6 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq)
return;
}
- talloc_free(subreq);
tevent_req_done(state->req);
}