Messages from modules were leaked. Call imsg_free() for them.
authoryasuoka <yasuoka@openbsd.org>
Wed, 14 Aug 2024 07:06:50 +0000 (07:06 +0000)
committeryasuoka <yasuoka@openbsd.org>
Wed, 14 Aug 2024 07:06:50 +0000 (07:06 +0000)
usr.sbin/radiusd/radiusd.c

index 93d7bee..3b5ffb2 100644 (file)
@@ -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);