test-tool/*_dpofua: Fix memory leaks in error paths
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
e9536d3333
commit
9ab1cc8baa
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user