Also guard all allocations in cache against this, via assert.
(Except in cases that would segfault anyway.)
/* Materialize the sets for the answer in (pseudo-)packet. */
struct answer ans;
memset(&ans, 0, sizeof(ans));
+ ans.mm = &pkt->mm;
ret = entry2answer(&ans, AR_ANSWER, eh, eh_bound,
qry->sname, type, new_ttl);
CHECK_RET(ret);
const void *data_bound, uint32_t ttl, knot_mm_t *pool)
{
assert(rds && data && data_bound && data_bound > data && !rds->data);
+ assert(pool); /* not required, but that's our current usage; guard leaks */
const void *d = data; /* iterates over the cache data */
{
uint8_t rr_count;