31 Jul
2009
31 Jul
'09
4:38 p.m.
On Fri, Jul 31, 2009 at 03:30:45PM +0200, Jens Vollinga wrote:
oops, yes, thanks. What was I thinking?!?
71 GiNaC::function* f; 72 try { 73 f = new GiNaC::function(reinterpret_cast<unsigned>(reader->second), args); 74 } 75 catch ( std::runtime_error ) { I think if (f) delete f; should be inserted here, otherwise we might leak memory if ->second is a pointer to a (C++) function. Best regards, Alexei