diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 02571734d4..06b1b090e1 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9329,7 +9329,9 @@ int unload_module() ast_mutex_destroy(&userl.lock); ast_mutex_destroy(&peerl.lock); ast_mutex_destroy(®l.lock); - + + close(sipsock); + return 0; }