free managed pointers