Manually set task to null after free to avoid double free issue

This commit is contained in:
zeroway
2024-01-19 17:41:54 +08:00
parent 0fac8df48c
commit 9ec12158b0

View File

@@ -80,6 +80,8 @@ scsi_free_scsi_task(struct scsi_task *task)
free(task->datain.data);
free(task);
task->datain.data = NULL;
task = NULL;
}
struct scsi_task *