bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

adapter.Scan causes memory leak

Open DHCPCD9 opened this issue 8 months ago • 1 comments

Hello there, while I was debugging my application for memory leak, I spotted that adapter.Scan causes memory leak, I copy-pasted example from README with addition of pprof and got this image

Image

It can go up to 3gb of RAM or so.

Tested on Windows 11

DHCPCD9 avatar Apr 21 '25 01:04 DHCPCD9

FIxed by #383 and labeled to close this on next release. Thank you for such a great bug report!

deadprogram avatar Nov 11 '25 12:11 deadprogram