Test if ptr != 0 in free()
Merge branch 'master' of github.com:mcmaniac/cuda-arrays