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

Function str_free

util/kconfig/util.c:43–48  ·  view source on GitHub ↗

Free storage for growable string */

Source from the content-addressed store, hash-verified

41
42/* Free storage for growable string */
43void str_free(struct gstr *gs)
44{
45 free(gs->s);
46 gs->s = NULL;
47 gs->len = 0;
48}
49
50/* Append to growable string */
51void str_append(struct gstr *gs, const char *s)

Callers 7

menuInfoMethod · 0.85
search_confFunction · 0.85
show_helpFunction · 0.85
show_helpFunction · 0.85
search_confFunction · 0.85
print_helpFunction · 0.85
text_insert_helpFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected