MCPcopy Create free account
hub / github.com/coreboot/coreboot / fmd_cleanup

Function fmd_cleanup

util/cbfstool/fmd.c:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void 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
340size_t fmd_count_nodes(const struct flashmap_descriptor *tree)
341{

Callers 2

fmd_createFunction · 0.85
full_fmd_cleanupFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected