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

Function mod_destroy

modules/load_balancer/load_balancer.c:497–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495
496
497static void mod_destroy(void)
498{
499 /* destroy data */
500 if ( curr_data) {
501 if (*curr_data)
502 free_lb_data( *curr_data );
503 shm_free( curr_data );
504 curr_data = 0;
505 }
506
507 /* destroy lock */
508 if (ref_lock) {
509 lock_destroy_rw( ref_lock );
510 ref_lock = 0;
511 }
512
513 /* destroy blacklist structures */
514 destroy_lb_bls();
515}
516
517
518static int w_lb_next(struct sip_msg *req, pv_spec_t *attrs_var)

Callers

nothing calls this directly

Calls 4

free_lb_dataFunction · 0.85
shm_freeFunction · 0.85
lock_destroy_rwFunction · 0.85
destroy_lb_blsFunction · 0.85

Tested by

no test coverage detected