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

Function destroy

modules/db_virtual/db_virtual.c:407–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405
406
407static void destroy(void){
408 LM_NOTICE("destroying module...\n");
409
410 int i, j;
411
412 if(global){
413 if(global->set_list){
414 for(i=0; i< global->size; i++){
415 if(global->set_list[i].db_list){
416 for(j=0; j< global->set_list[i].size; j++){
417 if(global->set_list[i].db_list[j].db_url.s){
418 shm_free(global->set_list[i].db_list[j].db_url.s);
419 }
420 }
421 shm_free(global->set_list[i].db_list);
422 }
423 }
424 shm_free(global->set_list);
425 }
426 shm_free(global);
427 }
428}
429
430int db_virtual_bind_api(const str* mod, db_func_t *dbb)
431{

Callers 1

init_globalFunction · 0.70

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected