summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-23 23:25:27 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-11-05 00:14:06 +0100
commite67d18e82e7fc21c4c6d259e729014074956c047 (patch)
tree8ea8498965fbfe898fd56d7bc9c144671cb6485f
parent2ab5d44b280e553cb0553937c7b7f3082d217dc9 (diff)
downloadsssd-e67d18e82e7fc21c4c6d259e729014074956c047.tar.gz
sssd-e67d18e82e7fc21c4c6d259e729014074956c047.tar.xz
sssd-e67d18e82e7fc21c4c6d259e729014074956c047.zip
Free the internal DP request
-rw-r--r--src/responder/common/responder_dp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c
index 34fc9f349..ecd5f39cd 100644
--- a/src/responder/common/responder_dp.c
+++ b/src/responder/common/responder_dp.c
@@ -761,4 +761,12 @@ static void sss_dp_internal_get_done(DBusPendingCall *pending, void *ptr)
* This will clean up the hash table entry as well
*/
talloc_zfree(sdp_req);
+
+ /* Free the sidereq to free the rest of the memory allocated with the
+ * internal dp request. */
+ if (ret == EOK) {
+ tevent_req_done(req);
+ } else {
+ tevent_req_error(req, ret);
+ }
}