diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2021-01-22 18:47:17 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-26 02:05:01 +0300 |
commit | 4896d7e37ea5217d42e210bfcf4d56964044704f (patch) | |
tree | a03f9feb434de9c9324b9e346201ba26d6959745 /tools/testing/selftests/bpf/xdpxceiver.c | |
parent | a86072838b67a3cdbb2ee2abc6c0ab3fb0d60be5 (diff) | |
download | linux-4896d7e37ea5217d42e210bfcf4d56964044704f.tar.xz |
selftests/bpf: Remove memory leak
The allocated entry is immediately overwritten by an assignment. Fix
that.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210122154725.22140-5-bjorn.topel@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdpxceiver.c')
-rw-r--r-- | tools/testing/selftests/bpf/xdpxceiver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/xdpxceiver.c b/tools/testing/selftests/bpf/xdpxceiver.c index 77d1bda37afa..9f40d310805a 100644 --- a/tools/testing/selftests/bpf/xdpxceiver.c +++ b/tools/testing/selftests/bpf/xdpxceiver.c @@ -728,7 +728,6 @@ static void worker_pkt_validate(void) u32 payloadseqnum = -2; while (1) { - pkt_node_rx_q = malloc(sizeof(struct pkt)); pkt_node_rx_q = TAILQ_LAST(&head, head_s); if (!pkt_node_rx_q) break; |