test-tool/*_dpofua: Fix memory leaks in error paths

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-10-06 15:18:46 -07:00
committed by Ronnie Sahlberg
parent e9536d3333
commit 9ab1cc8baa
18 changed files with 62 additions and 40 deletions

View File

@@ -97,7 +97,7 @@ test_writeverify12_dpo(void)
if (ret == -2) {
logging(LOG_NORMAL, "REPORT_SUPPORTED_OPCODES not implemented. "
"Skipping this part of the test");
return;
goto out;
}
logging(LOG_VERBOSE, "Unmarshall the DATA-IN buffer");
rsoc = scsi_datain_unmarshall(rso_task);
@@ -112,5 +112,7 @@ test_writeverify12_dpo(void)
"flag is clear in the CDB_USAGE_DATA");
CU_ASSERT_EQUAL(usage_data_dpo, 0x00);
}
out:
scsi_free_scsi_task(rso_task);
}