wlav / CPyCppyy

Other
23 stars 20 forks source link

Destroy STL string objects in STLWStringExecutor #26

Closed guitargeek closed 3 months ago

guitargeek commented 3 months ago

::operator delete only frees the memory that was previously allocated in Cppyy::CallO, but does not call the destructor of the std::string. Make sure that is done using keyword delete.

This is part of a fix in ROOT that also applies to CPyCppyy: https://github.com/root-project/root/pull/15777