numam-dpdk/test
Pablo de Lara a4492ab49e test/hash: fix potential memory leak
In the multiwriter test, if "found" array allocation failed,
the memory of "keys" array, which was successfully allocated
could not be freed, since by this time, tbl_multiwriter_test_params.keys
was not set to this array, which is the pointer freed when finishing
the test or when a failure happens.

To solve this, tbl_multiwriter_test_params.keys is set to the "keys"
address, just after allocating and filling the array.

Fixes: be856325cb ("hash: add scalable multi-writer insertion with Intel TSX")
Cc: stable@dpdk.org

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2018-07-26 21:52:31 +02:00
..
bpf test/bpf: add samples 2018-05-12 00:38:10 +02:00
cmdline_test test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
test test/hash: fix potential memory leak 2018-07-26 21:52:31 +02:00
test-acl test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
test-pipeline ethdev: convert remaining apps to new offload API 2018-07-04 21:50:22 +02:00
Makefile test: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build test: build app with meson as dpdk-test 2018-01-30 21:58:59 +01:00