]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: zero out allowedip node pointers when removing
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Jun 2021 14:33:28 +0000 (16:33 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 4 Jun 2021 14:33:28 +0000 (16:33 +0200)
commitf9b48a961cd271bcc58c4c76b61a84a139e76167
tree7a8f380838ba5844c04e75269e075ddfe373256d
parentd0cf96114fa60b8f7e7a671a7749538edec9d877
device: zero out allowedip node pointers when removing

This should make it a bit easier for the garbage collector.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/allowedips.go
device/allowedips_test.go