FS-11952: [Core] Fix memory leaks.

This commit is contained in:
Andrey Volk committed 2019-07-24 20:26:32 +04:00
1 parent 4a2812aaf5
commit 718d2341f7
11 files changed
+25 -1

No files matched your search

@@ -555,6 +555,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_cdr_pg_csv_shutdown)
switch_event_unbind_callback(event_handler);
switch_core_remove_state_handler(&state_handlers);
switch_core_hash_destroy(&globals.fd_hash);
return SWITCH_STATUS_SUCCESS;
}
@@ -1399,6 +1399,7 @@ void destroy_listener(listener_t * listener)
switch_mutex_unlock(listener->sock_mutex);
switch_core_hash_destroy(&listener->event_hash);
switch_core_hash_destroy(&listener->sessions);
/* remove any bindings for this connection */
remove_binding(listener, NULL);
@@ -502,6 +502,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_event_multicast_shutdown)
switch_event_free_subclass(MULTICAST_PEERDOWN);
switch_core_hash_destroy(&globals.event_hash);
switch_core_hash_destroy(&globals.peer_hash);
switch_safe_free(globals.address);
switch_safe_free(globals.bindings);
+1
View File
@@ -852,6 +852,7 @@ static void srgs_grammar_destroy(struct srgs_grammar *grammar)
switch_file_remove(grammar->jsgf_file_name, pool);
}
switch_core_destroy_memory_pool(&pool);
switch_core_hash_destroy(&grammar->rules);
}
/**