nuttx/net/netlink
zhanghongyu c6c7cf6bba net/netlink: fix memory leak in netlink_get_neighbor
Add kmm_free(alloc) before returning NULL when neigh is NULL in
netlink_get_neighbor(). Without this, the allocated memory is
leaked on the error path.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-04-13 08:46:57 -03:00
..
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig net/netlink: Add RTM preifx notify support 2024-05-14 10:05:37 -03:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
netlink.h net/netlink: replace net_lock with netlink_lock 2026-01-02 00:00:55 +08:00
netlink_attr.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
netlink_conn.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
netlink_netfilter.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
netlink_notifier.c net/netlink: fix netlink poll return value on success 2024-11-04 18:18:28 +08:00
netlink_route.c net/netlink: fix memory leak in netlink_get_neighbor 2026-04-13 08:46:57 -03:00
netlink_sockif.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00