From 5dfc71e1ee26cca6343efaa4eeaa0dafb09b8c1e Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 3 Aug 2019 22:00:47 -0500 Subject: [PATCH] put bytes back when done --- src/yggdrasil/session.go | 1 + 1 file changed, 1 insertion(+) 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)