From: yasuoka Date: Wed, 14 Aug 2024 07:06:50 +0000 (+0000) Subject: Messages from modules were leaked. Call imsg_free() for them. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=58911fd131d0089b31fa360b2fe1de372a2b1b57;p=openbsd Messages from modules were leaked. Call imsg_free() for them. --- 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);