Manually set task to null after free to avoid double free issue
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user