summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-07-02 10:20:39 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-07-02 16:06:52 -0400
commita71607420a44728e6aa237911da4221640a6a0e0 (patch)
treeb224f91f34783881ca6ccfca9cc5f21d3d2ac4b2 /src/providers
parent78e77f2d1ee0017e1e1c0bf5efe0e94a70930980 (diff)
downloadsssd-a71607420a44728e6aa237911da4221640a6a0e0.tar.gz
sssd-a71607420a44728e6aa237911da4221640a6a0e0.tar.xz
sssd-a71607420a44728e6aa237911da4221640a6a0e0.zip
IPA: Don't hang onto memory longer than necessary
This request and attached memory would be freed at the end of access-check processing, but it's a waste to keep it around.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_access.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index d7ded884f..4cb904ff6 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -126,6 +126,7 @@ static void ipa_hbac_check(struct tevent_req *req)
pd = talloc_get_type(be_req->req_data, struct pam_data);
ret = sdap_access_recv(req, &pam_status);
+ talloc_zfree(req);
if (ret != EOK) goto fail;
switch(pam_status) {