summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-25 11:14:04 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-26 08:00:21 -0400
commitae3de4019070ebf9a4ce622d613d82358e3d72ef (patch)
tree84a6ca98c15093a8943b2b68c3bf6f6fa275b0e0 /src
parent487c19b3871cebbdb703bb337d15abd31ec206db (diff)
downloadsssd-ae3de4019070ebf9a4ce622d613d82358e3d72ef.tar.gz
sssd-ae3de4019070ebf9a4ce622d613d82358e3d72ef.tar.bz2
sssd-ae3de4019070ebf9a4ce622d613d82358e3d72ef.zip
Fix double free issue
Diffstat (limited to 'src')
-rw-r--r--src/responder/common/responder_dp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c
index f8c3b6f1..b2b5d40e 100644
--- a/src/responder/common/responder_dp.c
+++ b/src/responder/common/responder_dp.c
@@ -95,12 +95,12 @@ static int sss_dp_req_destructor(void *ptr)
cb = sdp_req->cb_list;
while (cb) {
+ next = cb->next;
+ /* It is the responsibility of the callback to free cb */
cb->callback(sdp_req->err_maj,
sdp_req->err_min,
sdp_req->err_msg,
cb->callback_ctx);
- next = cb->next;
- talloc_free(cb);
cb = next;
}