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:
parent
a86072838b
commit
4896d7e37e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue