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

Function mod_destroy

modules/dialplan/dialplan.c:487–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485
486
487static void mod_destroy(void)
488{
489 /*destroy shared memory*/
490 if(default_par2){
491 shm_free(default_par2);
492 default_par2 = NULL;
493 }
494
495 destroy_data();
496#ifdef PCRE2_LIB
497 if (dp_ccontext)
498 {
499 pcre2_compile_context_free(dp_ccontext);
500 dp_ccontext = NULL;
501 }
502
503 if (dp_gcontext)
504 {
505 pcre2_general_context_free(dp_gcontext);
506 dp_gcontext = NULL;
507 }
508#endif
509}
510
511
512static int dp_update(struct sip_msg * msg, pv_spec_t * src, pv_spec_t * dest,

Callers

nothing calls this directly

Calls 2

shm_freeFunction · 0.85
destroy_dataFunction · 0.85

Tested by

no test coverage detected