| 326 | } |
| 327 | |
| 328 | void fmd_cleanup(struct flashmap_descriptor *victim) |
| 329 | { |
| 330 | if (!victim) |
| 331 | return; |
| 332 | |
| 333 | free(victim->name); |
| 334 | for (unsigned idx = 0; idx < victim->list_len; ++idx) |
| 335 | fmd_cleanup(victim->list[idx]); |
| 336 | free(victim->list); |
| 337 | free(victim); |
| 338 | } |
| 339 | |
| 340 | size_t fmd_count_nodes(const struct flashmap_descriptor *tree) |
| 341 | { |
no test coverage detected