free memory on quick exit
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Jan 2016 01:35:31 +0000 (20:35 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Jan 2016 01:35:31 +0000 (20:35 -0500)
src/main/conffile.c

index 2cf83ec..c204742 100644 (file)
@@ -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) {