From a2ca56b0f25b75bc6b5e8b0eda64bca09d0d4f87 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 24 Mar 2016 18:47:25 +0100 Subject: call: Change to past tense and move code after the free Reading the "releasing" log output sounded like one more message had been sent and this code is waiting for something. Take a copy of the call id and then print that the call has been released. --- src/call.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/call.c b/src/call.c index c6d10ea..d9ca66e 100644 --- a/src/call.c +++ b/src/call.c @@ -48,9 +48,10 @@ void call_leg_release(struct call_leg *leg) talloc_free(leg); if (!call->initial && !call->remote) { - LOGP(DAPP, LOGL_DEBUG, "call(%u) releasing.\n", call->id); + uint32_t id = call->id; llist_del(&call->entry); talloc_free(call); + LOGP(DAPP, LOGL_DEBUG, "call(%u) released.\n", id); } } -- cgit v1.2.3