examples/fips_validation: fix leak on failure
The wb_data variable went out of scope on failure in the get_writeback_data function. This is now freed before returning -1. Coverity issue: 363453 Fixes: 952e10cdad5e ("examples/fips_validation: support scatter gather list") Signed-off-by: Ciara Power <ciara.power@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
afda6b0116
commit
bda9ce3c94
@ -1128,6 +1128,7 @@ get_writeback_data(struct fips_val *val)
|
||||
|
||||
if (data_len) {
|
||||
RTE_LOG(ERR, USER1, "Error -1: write back data\n");
|
||||
free(wb_data);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user