cudaFreeArray(0) behavior?

How does cudaFreeArray() behave when it is passed 0? In my tests the call returns CUDA_SUCCESS and it appears no action is performed (which is what I would expect), but the documentation says nothing to confirm this.

Can anyone from nVidia verify the behavior I’m seeing? My memory management currently depends on this behavior for cudaFree() and I would sure like to use similar code for cudaFreeArray().

Correct, the behaviour is a no operation.

Thank you for the reply. I really didn’t want to write a different memory management scheme for cudaArrays.