Commit 21d272c0 authored by Xavier Thompson's avatar Xavier Thompson

gc.hpp: free remaining memory on destruction

parent f59db2db
......@@ -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