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.
zecke/mt-mncc-call
Holger Hans Peter Freyther 2016-03-24 18:47:25 +01:00
parent aa41b0aafc
commit 153ebbf6e2
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}