git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afda6b0
)
examples/fips_validation: fix leak on failure
author
Ciara Power
<ciara.power@intel.com>
Fri, 30 Oct 2020 17:36:40 +0000
(17:36 +0000)
committer
David Marchand
<david.marchand@redhat.com>
Sat, 31 Oct 2020 17:10:43 +0000
(18:10 +0100)
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>
examples/fips_validation/main.c
patch
|
blob
|
history
diff --git
a/examples/fips_validation/main.c
b/examples/fips_validation/main.c
index
6a1cea3
..
81539df
100644
(file)
--- a/
examples/fips_validation/main.c
+++ b/
examples/fips_validation/main.c
@@
-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;
}