You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 473cdfc
Browse filesBrowse the repository at this point in the historyBrowse files
fix memory leak in Rcpp::warning under tryCatch handlers
The variadic Rcpp::warning() template formatted its message into a
std::string whose destructor would be skipped if Rf_warning() longjmp-ed
(e.g. via tryCatch(warning=...)), leaking the heap buffer. Copy the
formatted message into a stack buffer and let the std::string be
destroyed before Rf_warning() is called.
Closes#1474.
0 commit comments