* Free list of rrs * _r is head of the list */
| 181 | * _r is head of the list |
| 182 | */ |
| 183 | static inline void do_free_rr(rr_t** _r, int _shm) |
| 184 | { |
| 185 | rr_t* ptr; |
| 186 | |
| 187 | while(*_r) { |
| 188 | ptr = *_r; |
| 189 | *_r = (*_r)->next; |
| 190 | if (ptr->params) { |
| 191 | if (_shm) shm_free_params(ptr->params); |
| 192 | else free_params(ptr->params); |
| 193 | } |
| 194 | if (_shm) shm_free(ptr); |
| 195 | else pkg_free(ptr); |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | |
| 200 | /* |
no test coverage detected