3D texture

there is a memory leak in sample code of cuda 2.0 3dTexture
in lin 167
167 CUDA_SAFE_CALL( cudaMallocHost(&(pagelockedPtr.ptr), size) );
168 memcpy(pagelockedPtr.ptr, h_volume, size);
169 #endif
it’s never free pagelockedPtr.ptr

Thanks for the bug report. We like to leave some in there as a test to see if anybody actually reads the sample code.

The bug work-around using page locked memory will be removed for the final CUDA 2.0 release anyway.

That is what I always tell my collegues also ;)