Skip to content

Commit 0889025

Browse files
author
null
committed
b.Release()
1 parent 66120e9 commit 0889025

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

proxy/wireguard/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ func (c *udpConnClient) WriteMultiBuffer(mb buf.MultiBuffer) error {
411411
ip, err := c.resolveFunc(b.UDP.Address.String())
412412
if err != nil {
413413
errors.LogErrorInner(context.Background(), err, "drop packet to ", b.UDP, " with size ", len(b.Bytes()))
414+
b.Release()
414415
continue
415416
}
416417
dst = &net.UDPAddr{

0 commit comments

Comments
 (0)