diff --git a/plugin/executable/forward/forward.go b/plugin/executable/forward/forward.go index beffab648..8a024e63f 100644 --- a/plugin/executable/forward/forward.go +++ b/plugin/executable/forward/forward.go @@ -285,6 +285,7 @@ func (f *Forward) exchange(ctx context.Context, qCtx *query_context.Context, us } else { r = new(dns.Msg) err = r.Unpack(*respPayload) + pool.ReleaseBuf(respPayload) if err != nil { r = nil }