* - close database connection * - terminate lock (ref_lock) */
| 394 | * - terminate lock (ref_lock) |
| 395 | */ |
| 396 | static 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 | /* |
nothing calls this directly
no test coverage detected