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

Function memo_release

malloc2/malloc2.c:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static void memo_release(struct hc_malloc *a, void *p) {
35 struct hc_memo_alloc *ma = hc_baseof(a, struct hc_memo_alloc, malloc);
36 struct memo *m = hc_baseof(p, struct memo, data);
37 *(struct memo **)hc_set_add(&ma->memo, &m->size, true) = m;
38}
39
40static enum hc_order memo_cmp(const void *l, const void *r) {
41 return hc_cmp(*(size_t *)l, *(size_t *)r);

Callers

nothing calls this directly

Calls 1

hc_set_addFunction · 0.85

Tested by

no test coverage detected