Set info work to null after it is freed in nf1 after a restart to prevent double free later.
diff --git a/driver-bitfury.c b/driver-bitfury.c
index 202c8af..9968a61 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -911,6 +911,7 @@ static int64_t nf1_scan(struct thr_info *thr, struct cgpu_info *bitfury,
info->work = get_work(thr, thr->id);
if (unlikely(thr->work_restart)) {
free_work(info->work);
+ info->work = NULL;
return 0;
}
bitfury_work_to_payload(&info->payload, info->work);