I am using a C++ routine that is called from R. In this routine I allocate memory dynamically with new. It is necessary to use delete before the routine returns? It seems to me that it is not necessary. Anyone knows?