Free a struct fail_point_setting */
| 259 | |
| 260 | /* Free a struct fail_point_setting */ |
| 261 | static void |
| 262 | fail_point_setting_destroy(struct fail_point_setting *fp_setting) |
| 263 | { |
| 264 | struct fail_point_entry *ent; |
| 265 | |
| 266 | while (!TAILQ_EMPTY(&fp_setting->fp_entry_queue)) { |
| 267 | ent = TAILQ_FIRST(&fp_setting->fp_entry_queue); |
| 268 | TAILQ_REMOVE(&fp_setting->fp_entry_queue, ent, fe_entries); |
| 269 | fail_point_entry_destroy(ent); |
| 270 | } |
| 271 | |
| 272 | fs_free(fp_setting); |
| 273 | } |
| 274 | |
| 275 | /* Allocate and initialize a struct fail_point_entry */ |
| 276 | static struct fail_point_entry * |
no test coverage detected