driver: fix double free on context destruction