diff options
-rw-r--r-- | src/responder/common/responder_dp.c | 4 |
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; } |