MCPcopy Create free account
hub / github.com/codr7/hacktical-c / context_deinit

Function context_deinit

slog/slog.c:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static void context_deinit(struct hc_slog *s) {
127 struct hc_slog_context *sc = hc_baseof(s, struct hc_slog_context, slog);
128
129 for (size_t i = 0; i < sc->length; i++) {
130 struct hc_slog_field *f = sc->fields[i];
131 field_deinit(f);
132 free(f);
133 }
134
135 free(sc->fields);
136}
137
138static void context_write(struct hc_slog *s,
139 const size_t n,

Callers

nothing calls this directly

Calls 1

field_deinitFunction · 0.85

Tested by

no test coverage detected