mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 11:03:16 +08:00
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>