mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 01:49:24 +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>