google / gousb

gousb provides low-level interface for accessing USB devices
Apache License 2.0
845 stars 124 forks source link

Memory Leak in CGO part #96

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hey, @zagrodzki I have a memory leak in my app using gousb. There is nothing in pprof so I assume it is somewhere in the CGO parts. Do you have any advice how to figure out where the leak is?

zagrodzki commented 3 years ago

I don't have any specific advice. If you can build a small repro case that I can run myself, then I could take a look, but otherwise, I don't think I can be of much help here.