diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index 0ced6a22..e23ec0dd 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -79,8 +79,8 @@ scsi_free_scsi_task(struct scsi_task *task) } free(task->datain.data); - free(task); task->datain.data = NULL; + free(task); task = NULL; }