Skip to content
Commit 220c4fff authored by Rait Rääk's avatar Rait Rääk Committed by Benjamin Cabé
Browse files

net: ethernet: arp: Fix incorrect adding to the pending queue



k_fifo_put is a macro that expands the call to net_pkt_ref(pending)
multiple times when CONFIG_TRACING is enabled thus causing extra
reference for the pending packet and a memory leak.
Fix by moving the referencing call to a separate line.
Signed-off-by: default avatarRait Rääk <raitraak@gmail.com>
parent c4988187
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment