handle deallocation of null pointers for systems without posix_memalign