Release the call when freeing a registry
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
0068b8c823
commit
904027f25f
|
@ -6638,6 +6638,8 @@ static void delete_users(void)
|
|||
for (reg = registrations;reg;) {
|
||||
regl = reg;
|
||||
reg = reg->next;
|
||||
if (regl->call)
|
||||
sip_destroy(regl->call);
|
||||
if (regl->expire > -1)
|
||||
ast_sched_del(sched, regl->expire);
|
||||
free(regl);
|
||||
|
|
Loading…
Reference in New Issue