diff --git a/src/yggdrasil/session.go b/src/yggdrasil/session.go index 0552ec1b..f60e81a2 100644 --- a/src/yggdrasil/session.go +++ b/src/yggdrasil/session.go @@ -495,6 +495,7 @@ func (sinfo *sessionInfo) sendWorker() { // TODO var packet []byte sessionFunc := func() { + defer util.PutBytes(bs) sinfo.bytesSent += uint64(len(bs)) payload, nonce := crypto.BoxSeal(&sinfo.sharedSesKey, bs, &sinfo.myNonce) defer util.PutBytes(payload)