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:
Mark Spencer 2004-02-02 20:50:05 +00:00
parent 0068b8c823
commit 904027f25f
1 changed files with 2 additions and 0 deletions

View File

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