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

Function pv_value_destroy

pvar.c:5740–5746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5738}
5739
5740void pv_value_destroy(pv_value_t *val)
5741{
5742 if(val==0) return;
5743 if(val->flags&PV_VAL_PKG) pkg_free(val->rs.s);
5744 if(val->flags&PV_VAL_SHM) shm_free(val->rs.s);
5745 memset(val, 0, sizeof(pv_value_t));
5746}
5747
5748/* IMPORTANT NOTE - even if the function prints and returns a static buffer, it
5749 * has built-in support for PV_PRINTF_BUF_NO levels of nesting

Callers 4

do_assignFunction · 0.85
do_actionFunction · 0.85
eval_elemFunction · 0.85
auth_get_ha1Function · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected