aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-05-11 16:50:24 +0800
committerAlexei Starovoitov <[email protected]>2024-05-12 17:28:42 -0700
commita3c1c95538e22283ef6fa529e3ffa0e6d47ee190 (patch)
treeeeb34020f3711932589566cb22bd238be943b34c /net/ipv4/tcp_input.c
parent5ddafcc377f98778acc08f660dee6400aece6a62 (diff)
selftests/bpf: Free strdup memory in xdp_hw_metadata
The strdup() function returns a pointer to a new string which is a duplicate of the string "ifname". Memory for the new string is obtained with malloc(), and need to be freed with free(). This patch adds this missing "free(saved_hwtstamp_ifname)" in cleanup() to avoid a potential memory leak in xdp_hw_metadata.c. Signed-off-by: Geliang Tang <[email protected]> Link: https://lore.kernel.org/r/af9bcccb96655e82de5ce2b4510b88c9c8ed5ed0.1715417367.git.tanggeliang@kylinos.cn Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions