git: net: Handle R_Malloc() failure in rt_setshims()
Aaron LI
aly at crater.dragonflybsd.org
Fri Nov 13 21:51:13 PST 2026
commit 2fb883c70de8415c4d669fe4a6ed2b8b793b7157
Author: Aaron LI <aly at aaronly.me>
Date: Sat Nov 14 13:45:06 2026 +0800
net: Handle R_Malloc() failure in rt_setshims()
Introduce the rt_freeshims() helper to free the memory allocated by
rt_setshims(), and also call it in rtrequest1() to avoid potential
memory leak.
This only applies MPLS.
Summary of changes:
sys/net/route.c | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2fb883c70de8415c4d669fe4a6ed2b8b793b7157
--
DragonFly BSD source repository
More information about the Commits
mailing list