Re: [R] R extension memory leak detection question

2021-03-12 Thread Duncan Murdoch
On 12/03/2021 12:37 p.m., Duncan Murdoch wrote: On 12/03/2021 12:13 p.m., xiaoyan yu wrote: I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, t

Re: [R] R extension memory leak detection question

2021-03-12 Thread Duncan Murdoch
On 12/03/2021 12:13 p.m., xiaoyan yu wrote: I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, there will be a memory leak. However, the address

Re: [R] R extension memory leak detection question

2021-03-12 Thread Bert Gunter
This is the wrong list for such questions. Post to r-devel instead. Cheers, Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Mar 12, 2021 at 9:13 AM xiaoya

[R] R extension memory leak detection question

2021-03-12 Thread xiaoyan yu
I am writing C++ program based on R extensions and also try to test the program with google address sanitizer. I thought if we don't protect the variable from the allocation API such as Rf_allocVector, there will be a memory leak. However, the address sanitizer didn't report it. Is my understandin