projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549a00e
)
free memory on quick exit
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 29 Jan 2016 01:35:31 +0000
(20:35 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 29 Jan 2016 01:35:31 +0000
(20:35 -0500)
src/main/conffile.c
patch
|
blob
|
history
diff --git
a/src/main/conffile.c
b/src/main/conffile.c
index
2cf83ec
..
c204742
100644
(file)
--- 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) {