commit | 3fa5c8c652ba8a8b75a3c9644b8de417740f4958 | [log] [tgz] |
---|---|---|
author | Arnaud BarreĢ <arnaud.barre@gmail.com> | Thu Jan 30 19:52:53 2020 +0000 |
committer | William S Fulton <wsf@fultondesigns.co.uk> | Thu Jan 30 20:43:39 2020 +0000 |
tree | f6956dbfb6023cf70056497b49ae61b42a1d2c3e | |
parent | b0ce22625b5374d1e574297cad9104776f1915c3 [diff] |
Fix R memory leak on exception There is a possible memory leak in case the SWIG_exception_fail macro is called. The problem is related to its definition that call the function Rf_warning. This function (as well as Rf_error) involves a longjmp over C++ destructors on the stack. Thus, all the objects allocated on the heap are not freed. Closes #914