From x|@oy@n@yu @end|ng |rom gm@||@com  Fri Mar 12 19:43:17 2021
From: x|@oy@n@yu @end|ng |rom gm@||@com (xiaoyan yu)
Date: Fri, 12 Mar 2021 13:43:17 -0500
Subject: [Rd] R extension memory leak detection question
Message-ID: <CANjVfJ2xXfinnpYgEoH_0dwvG=29FFMinuV+1cOueSrRMNyq9A@mail.gmail.com>

I am writing C++ program based on R extensions and also try to test the
program with google address sanitizer.

I thought if I 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 understanding correct? Or I will see the memory
leak only if I compile R source code with the address sanitizer.

 Please help!

Thanks,
Xiaoyan

	[[alternative HTML version deleted]]



[Rd] R extension memory leak detection question
xiaoyan yu