From 80f28c5bf86395edc408f7ad23fbd0d43e587928 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 17 Jun 2011 07:06:12 -0600 Subject: [PATCH] Fix RADIUS helper resource leak cppcheck detected the config file was never closed/released. This could prevent the helper shutting down cleanly. --- helpers/basic_auth/squid_radius_auth/squid_rad_auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c b/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c index 20ab75c8e0..ea4c0686f7 100644 --- a/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c +++ b/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c @@ -263,6 +263,7 @@ rad_auth_config(const char *cfname) if (!memcmp(line, "port", 4)) sscanf(line, "port %s", svc_name); } + fclose(cf); if (srv && crt) return 0; return -1; -- 2.47.2