summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/ldap/sdap_access.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c
index dda60fc28..e09e6b8fe 100644
--- a/src/providers/ldap/sdap_access.c
+++ b/src/providers/ldap/sdap_access.c
@@ -1461,14 +1461,13 @@ static void sdap_access_lock_get_lockout_done(struct tevent_req *subreq)
state = tevent_req_data(req, struct sdap_access_lock_req_ctx);
ret = sdap_get_generic_recv(subreq, state, &num_results, &results);
+ talloc_zfree(subreq);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, "Cannot retrieve ppolicy\n");
ret = ERR_NETWORK_IO;
goto done;
}
- talloc_zfree(subreq);
-
/* Check the number of responses we got
* If it's exactly 1, we passed the check
* If it's < 1, we failed the check