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
This commit is contained in:
Björn Töpel 2021-01-22 16:47:17 +01:00 committed by Daniel Borkmann
parent a86072838b
commit 4896d7e37e
1 changed files with 0 additions and 1 deletions

View File

@ -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;