#982 Dune::className has a memory leak
|Reported by||Andreas Lauser (email@example.com)|
|Reported at||Nov 23, 2011 18:43|
|Operating System||Unspecified / All|
|Last edited by||Oliver Sander (firstname.lastname@example.org)|
|Last edited at||Nov 24, 2011 06:10|
|Closed by||Oliver Sander (email@example.com)|
|Closed at||Nov 24, 2011 06:10|
|Closed in version||Unknown|
|Comment||Backported the original fix from revision 6402 to the 2.1 branch in commit 6531|
the string returned by __cxa_demangle must be freed which was not the case and lead to valgrind complaints.
The attached patch is for DUNE 2.1, but I doubt that dune/common/classname.hh was changed in the mean time, so it should apply to trunk as well. I would also like to ask whether this patch can be included in the DUNE 2.1 branch.