Fix memory leak. Not all tasks are deleted in thread_d dtor #8
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRPH-147"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: srpatel19590
In thread::quit()
{
...
my->start_next_fiber(true)
...
}
my->start_next_fiber(true) - an exception is raised from here and a context has yet a pointer to the task that will never released and memory will not freed.
So to avoid such situation in ~thread_d() lets release it.
Reference: https://github.com/bitshares/bitshares-fc/pull/130
Created by: srpatel19590
@oxarbitrage I've been instructed to raise PR in
latest-fc. @pbattu123 please share the FC GitflowCreated by: pbattu123
Git flow for fc:
Created by: oxarbitrage
Thank you @pbattu123