diff --git a/lib/dns/client.c b/lib/dns/client.c index 7e0bceb324..ede85ca516 100644 --- a/lib/dns/client.c +++ b/lib/dns/client.c @@ -1096,6 +1096,12 @@ client_resfind(resctx_t *rctx, dns_fetchevent_t *event) { } } } + if (rctx->rdataset != NULL) { + putrdataset(mctx, &rctx->rdataset); + } + if (rctx->sigrdataset != NULL) { + putrdataset(mctx, &rctx->sigrdataset); + } if (n == 0) { /* * We didn't match any rdatasets (which means