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

Function buffer_delete

util/cbfstool/common.c:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void buffer_delete(struct buffer *buffer)
114{
115 assert(buffer);
116 if (buffer->name) {
117 free(buffer->name);
118 buffer->name = NULL;
119 }
120 if (buffer->data) {
121 free(buffer_get_original_backing(buffer));
122 buffer->data = NULL;
123 }
124 buffer->offset = 0;
125 buffer->size = 0;
126}
127
128static struct {
129 uint32_t arch;

Callers 15

elog_readFunction · 0.85
mainFunction · 0.85
write_elfFunction · 0.85
rmodule_stage_to_elfFunction · 0.85
cbfs_add_master_headerFunction · 0.85
add_topswap_bootblockFunction · 0.85
cbfs_add_componentFunction · 0.85
cbfstool_convert_fspFunction · 0.85
cbfstool_convert_mkstageFunction · 0.85

Calls 2

freeFunction · 0.50

Tested by

no test coverage detected