Skip to content

Commit

Permalink
forward: fixed upstream resp buf not release to pool
Browse files Browse the repository at this point in the history
  • Loading branch information
IrineSistiana committed Nov 6, 2023
1 parent 4f149c2 commit 5db7455
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/executable/forward/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5db7455

Please sign in to comment.