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

@@ -129,7 +129,7 @@ test_writeatomic16_dpofua(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);
@@ -158,5 +158,7 @@ test_writeatomic16_dpofua(void)
CU_FAIL("Target did not return any data for "
"ReportSupportedOpcodes");
}
out:
scsi_free_scsi_task(rso_task);
}