linux-stable/tools/net/ynl/lib
Jakub Kicinski 5d78b73e85 tools: ynl: don't leak mcast_groups on init error
Make sure to free the already-parsed mcast_groups if
we don't get an ack from the kernel when reading family info.
This is part of the ynl_sock_create() error path, so we won't
get a call to ynl_sock_destroy() to free them later.

Fixes: 86878f14d7 ("tools: ynl: user space helpers")
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240220161112.2735195-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-02-21 17:02:28 -08:00
..
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
__init__.py tools/net/ynl: Add support for create flags 2023-08-27 17:17:10 -07:00
Makefile tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
nlspec.py tools/net/ynl: Add 'sub-message' attribute decoding to ynl 2023-12-18 14:39:43 -08:00
ynl-priv.h tools: ynl: move private definitions to a separate header 2023-12-05 20:08:33 -08:00
ynl.c tools: ynl: don't leak mcast_groups on init error 2024-02-21 17:02:28 -08:00
ynl.h tools: ynl-gen: support fixed headers in genetlink 2023-12-14 17:51:21 -08:00
ynl.py tools/net/ynl: Add binary and pad support to structs for tc 2023-12-18 14:39:43 -08:00