[PATCH] ch: set driver to NULL after freeing it