From 58911fd131d0089b31fa360b2fe1de372a2b1b57 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Wed, 14 Aug 2024 07:06:50 +0000 Subject: [PATCH] Messages from modules were leaked. Call imsg_free() for them. --- usr.sbin/radiusd/radiusd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c index 93d7bee5407..3b5ffb2f9de 100644 --- a/usr.sbin/radiusd/radiusd.c +++ b/usr.sbin/radiusd/radiusd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd.c,v 1.54 2024/08/14 07:04:54 yasuoka Exp $ */ +/* $OpenBSD: radiusd.c,v 1.55 2024/08/14 07:06:50 yasuoka Exp $ */ /* * Copyright (c) 2013, 2023 Internet Initiative Japan Inc. @@ -1405,6 +1405,7 @@ radiusd_module_imsg_read(struct radiusd_module *module) if (n == 0) return (0); radiusd_module_imsg(module, &imsg); + imsg_free(&imsg); } return (0); -- 2.20.1