Skip to content
Snippets Groups Projects
Commit f65912c2 authored by Markus Blatt's avatar Markus Blatt
Browse files

Fixed the free call in the test.

oelements stores longs which need to be converted to pointers before freeing.
Previously we actually free the entries of the array oelements and not the
stored pointers.
parent 614a8dfa
Branches
Tags
No related merge requests found
......@@ -93,7 +93,7 @@ struct testPoolMain
for(int i=0; i < elements*10; ++i)
pool.free(reinterpret_cast<T*>(oelements+i));
pool.free(reinterpret_cast<void*>(oelements[i]));
delete[] oelements;
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment