Release the call when freeing a registry
authorMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 20:50:05 +0000 (20:50 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Feb 2004 20:50:05 +0000 (20:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2112 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b2b61ae..fe8a7fe 100755 (executable)
@@ -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);