From: Alan T. DeKok Date: Fri, 29 Jan 2016 01:35:31 +0000 (-0500) Subject: free memory on quick exit X-Git-Tag: release_3_0_12~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f42cc89220b8e3bb207bfc35a7eaf1e7ac61050;p=thirdparty%2Ffreeradius-server.git free memory on quick exit --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 2cf83ec2f3a..c2047426427 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -390,7 +390,10 @@ static bool cf_file_check(CONF_SECTION *cs, char const *filename, bool check_per return false; } - if (!check_perms) return true; + if (!check_perms) { + talloc_free(file); + return true; + } #ifdef S_IWOTH if ((file->buf.st_mode & S_IWOTH) != 0) {