| 405 | |
| 406 | |
| 407 | static 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 | |
| 430 | int db_virtual_bind_api(const str* mod, db_func_t *dbb) |
| 431 | { |
no test coverage detected