MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mod_destroy

Function mod_destroy

modules/emergency/emergency_methods.c:396–417  ·  view source on GitHub ↗

* - close database connection * - terminate lock (ref_lock) */

Source from the content-addressed store, hash-verified

394 * - terminate lock (ref_lock)
395 */
396static void mod_destroy(void) {
397 curl_global_cleanup();
398
399 if(ref_lock){
400 lock_destroy_rw( ref_lock );
401 ref_lock = NULL;
402 }
403
404 if(call_htable)
405 destroy_ehtable(call_htable, emet_size);
406
407 if(subs_htable)
408 destroy_shtable(subs_htable, subst_size);
409
410 shm_free(inicialized);
411 shm_free(db_service_provider);
412 shm_free(db_esrn_esgwri);
413 shm_free(empty);
414 destroy_codes(codes);
415
416
417}
418
419
420/*

Callers

nothing calls this directly

Calls 5

lock_destroy_rwFunction · 0.85
destroy_ehtableFunction · 0.85
shm_freeFunction · 0.85
destroy_codesFunction · 0.85
destroy_shtableFunction · 0.70

Tested by

no test coverage detected