diff options
author | Björn Töpel <[email protected]> | 2021-01-22 16:47:17 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2021-01-26 00:05:01 +0100 |
commit | 4896d7e37ea5217d42e210bfcf4d56964044704f (patch) | |
tree | a03f9feb434de9c9324b9e346201ba26d6959745 | |
parent | a86072838b67a3cdbb2ee2abc6c0ab3fb0d60be5 (diff) |
selftests/bpf: Remove memory leak
The allocated entry is immediately overwritten by an assignment. Fix
that.
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
-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; |