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

Function _empty_branches

dset.c:112–120  ·  view source on GitHub ↗

empties/frees the content of a dset without free'ing the dset itself */

Source from the content-addressed store, hash-verified

110
111/* empties/frees the content of a dset without free'ing the dset itself */
112static inline void _empty_branches(struct dset_ctx *dsct)
113{
114 int i;
115
116 for( i = 0 ; i < dsct->nr_branches ; i++ )
117 destroy_avp_list( &dsct->branches[i].branch.attrs );
118 pkg_free( dsct->branches );
119 dsct->branches = NULL;
120}
121
122/*! Frees a destination set which used to be stored in the global context */
123static void dset_destroy(void *dsct)

Callers 2

dset_destroyFunction · 0.85
clear_dsetFunction · 0.85

Calls 1

destroy_avp_listFunction · 0.85

Tested by

no test coverage detected