On Thu, Jun 10, 2021 at 12:19 PM Diego Bernardes
<[email protected]> wrote:
>
> I'm using cgo and struggling to find a memory leak which can be easily 
> detected if I can replace the cgo memory allocator to the one the C library 
> I'm using have because they did a leak detector implementation there.
>
> It's possible?

What do you mean by "the cgo memory allocator?"  Calls to, for
example, C.malloc should already be using the same allocator that your
C library uses.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcW9NsXZ4atxfYwEb4Ag6mxKhBGP6g%2BCYXoQM1F2YY3H_A%40mail.gmail.com.

Reply via email to