fixed pointers array leak