]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes use count to properly decrement if an active dahdi channel is destroyed allowin...
authorJeff Peeler <jpeeler@digium.com>
Sat, 16 Aug 2008 01:12:18 +0000 (01:12 +0000)
committerJeff Peeler <jpeeler@digium.com>
Sat, 16 Aug 2008 01:12:18 +0000 (01:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@138360 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index d1fe75d88f4b8698a64c35df92e52d74e2e07305..5234b8c20116abd570dd0cd009ce10525ded279e 100644 (file)
@@ -6690,6 +6690,7 @@ static int dahdi_destroy_channel_bynum(int channel)
                        int x = DAHDI_FLASH;
                        ioctl(tmp->subs[SUB_REAL].dfd, DAHDI_HOOK, &x); /* important to create an event for dahdi_wait_event to register so that all ss_threads terminate */
                        destroy_channel(prev, tmp, 1);
+                       ast_module_unref(ast_module_info->self);
                        return RESULT_SUCCESS;
                }
                prev = tmp;