Commit af98158c authored by Xavier Thompson's avatar Xavier Thompson

gc.hpp: free remaining memory on destruction

parent f9c96ad3
......@@ -121,6 +121,18 @@ namespace typon::fdt::lock_free
}
}
}
~gc()
{
delete[] _stamps;
auto tail = _tail.load();
while (tail)
{
auto next = tail->_next.load();
delete tail;
tail = next;
}
}
};
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment