destroy current dispatching data */
| 162 | |
| 163 | /* destroy current dispatching data */ |
| 164 | void 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 | |
| 177 | int add_dest2list(int id, str uri, const struct socket_info *sock, str *comsock, int state, |
no test coverage detected