From: Alan T. DeKok Date: Thu, 9 Sep 2010 12:49:01 +0000 (+0200) Subject: Close file on error condition X-Git-Tag: release_3_0_0_beta0~1259 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=490112b74bf3ecfb291ad4d22a26eb4ffc1aee89 Close file on error condition --- diff --git a/src/main/conffile.c b/src/main/conffile.c index ee47afb..5157f14 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -1710,6 +1710,7 @@ int cf_file_include(const char *filename, CONF_SECTION *cs) } if (cf_data_find_internal(cs, filename, PW_TYPE_FILENAME)) { + fclose(fp); radlog(L_ERR, "Cannot include the same file twice: \"%s\"", filename); return -1;