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

Function ds_destroy_data

modules/dispatcher/dispatch.c:164–174  ·  view source on GitHub ↗

destroy current dispatching data */

Source from the content-addressed store, hash-verified

162
163/* destroy current dispatching data */
164void ds_destroy_data(ds_partition_t *partition)
165{
166 if (partition->data && *partition->data)
167 ds_destroy_data_set( *partition->data );
168
169 /* destroy rw lock */
170 if (partition->lock) {
171 lock_destroy_rw( partition->lock );
172 partition->lock = 0;
173 }
174}
175
176
177int add_dest2list(int id, str uri, const struct socket_info *sock, str *comsock, int state,

Callers 1

destroyFunction · 0.85

Calls 2

ds_destroy_data_setFunction · 0.85
lock_destroy_rwFunction · 0.85

Tested by

no test coverage detected