summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2022-09-29 11:01:33 +0200
committerAndrii Nakryiko <andrii@kernel.org>2022-09-30 15:42:37 -0700
commit5f388bba7acbdb097a9e7ed932a39b40f7eb2acf (patch)
treee74aa06dd34af9e981e603ae3d85c77550ef31e3 /tools/testing
parent3ca2fb497440a3c8294f9df0ce7b2c3c9a1c5875 (diff)
selftests/xsk: Fix double free
Fix a double free at exit of the test suite. Fixes: a693ff3ed561 ("selftests/xsk: Add support for executing tests on physical device") Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Link: https://lore.kernel.org/bpf/20220929090133.7869-1-magnus.karlsson@gmail.com
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/bpf/xskxceiver.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/testing/selftests/bpf/xskxceiver.c b/tools/testing/selftests/bpf/xskxceiver.c
index ef33309bbe49..d1a5f3218c34 100644
--- a/tools/testing/selftests/bpf/xskxceiver.c
+++ b/tools/testing/selftests/bpf/xskxceiver.c
@@ -1953,9 +1953,6 @@ int main(int argc, char **argv)
pkt_stream_delete(tx_pkt_stream_default);
pkt_stream_delete(rx_pkt_stream_default);
- free(ifobj_rx->umem);
- if (!ifobj_tx->shared_umem)
- free(ifobj_tx->umem);
ifobject_delete(ifobj_tx);
ifobject_delete(ifobj_rx);