When removing all packets from a dialog we also need to free the data if present.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@198248 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
e69b8d20c3
commit
222b494c02
|
@ -3079,6 +3079,9 @@ static void *dialog_unlink_all(struct sip_pvt *dialog, int lockowner, int lockdi
|
|||
dialog->packets = dialog->packets->next;
|
||||
AST_SCHED_DEL(sched, cp->retransid);
|
||||
dialog_unref(cp->owner, "remove all current packets in this dialog, and the pointer to the dialog too as part of __sip_destroy");
|
||||
if (cp->data) {
|
||||
ast_free(cp->data);
|
||||
}
|
||||
ast_free(cp);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue