Added missing NULL check before cudaFree.
Added missing NULL check before cudaFree.

sintefmath/equelle,sintefmath/equelle,sintefmath/equelle,sintefmath/equelle,sintefmath/equelle,sintefmath/equelle,sintefmath/equelle,sintefmath/equelle