diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index 1b498530..0ced6a22 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -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 *