summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-23 23:25:27 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-01-29 11:19:45 +0100
commitdaaa64e0c84cda7e8d07891f231896ce48832946 (patch)
treed37e23bebfa40d7d7bfb8983e307b54bb930d000 /src
parentf0d75718880a0e3a9bc6de185951e94817f59510 (diff)
downloadsssd-daaa64e0c84cda7e8d07891f231896ce48832946.tar.gz
sssd-daaa64e0c84cda7e8d07891f231896ce48832946.tar.xz
sssd-daaa64e0c84cda7e8d07891f231896ce48832946.zip
Free the internal DP request
Diffstat (limited to 'src')
-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 a54c68d7e..4d69b2c64 100644
--- a/src/responder/common/responder_dp.c
+++ b/src/responder/common/responder_dp.c
@@ -762,4 +762,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);
+ }
}