memory leak in new(tbb::task::allocate_root()) ?

memory leak in new(tbb::task::allocate_root()) ?

I have the following code :
MyTask& cefft = *new( tbb::task::allocate_root() )MyTask(...)
...
cefft.execute();

The memory tool (Inspector) reports memory leak here.

I didn't delete cefft task as when I tried, I got glibc error. I saw tbb task example didn't delete task allocated like this.

Is there a proper way to delete this task? Why the Inspector reports memory leak?

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.