mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 23:40:21 +08:00
c6c7cf6bba
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>