removing bug that cudafrees a host pointer
Former-commit-id: 36070136a733bb3ab4f36975c6389eb0c9179b03