From 644db36ab1111b88abca57d2438b72d618403dde Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Oct 29 2012 16:10:02 +0000 Subject: Free the internal DP request --- diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index 34fc9f3..ecd5f39 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); + } }