From: Jorge Pereira Date: Thu, 25 Jun 2015 20:49:31 +0000 (-0300) Subject: Was leaking on cf_file_input() when don't have write permission X-Git-Tag: release_3_0_9~79^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9075c590341aaf0cb81080fcb9d82b9406a9fcd4;p=thirdparty%2Ffreeradius-server.git Was leaking on cf_file_input() when don't have write permission --- diff --git a/src/main/conffile.c b/src/main/conffile.c index 83394f2cd98..97da783563b 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -387,6 +387,7 @@ static bool cf_file_input(CONF_SECTION *cs, char const *filename) if ((file->buf.st_mode & S_IWOTH) != 0) { ERROR("Configuration file %s is globally writable. " "Refusing to start due to insecure configuration.", filename); + talloc_free(file); return false; } #endif