spv-driver: Fix double free on error path.