Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
2421 Discussions

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

Zhu_W_Intel
Employee
137 Views
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?
0 Kudos
0 Replies
Reply