Leaking on unload is strictly forbidden

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12251 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene committed 2009-02-23 19:17:24 +00:00
1 parent 5a92bb1383
commit c4787ffd48
13 files changed
+88 -3

No files matched your search

@@ -471,6 +471,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_event_socket_shutdown)
switch_event_unbind(&globals.node);
switch_safe_free(prefs.ip);
switch_safe_free(prefs.password);
return SWITCH_STATUS_SUCCESS;
}
@@ -933,6 +936,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_event_socket_load)
switch_application_interface_t *app_interface;
switch_api_interface_t *api_interface;
memset(&globals, 0, sizeof(globals));
switch_mutex_init(&globals.listener_mutex, SWITCH_MUTEX_NESTED, pool);
memset(&listen_list, 0, sizeof(listen_list));