projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cea200
)
Check pointers before using them
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 20:37:32 +0000
(15:37 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 20:37:32 +0000
(15:37 -0500)
src/modules/rlm_sql/rlm_sql.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_sql/rlm_sql.c
b/src/modules/rlm_sql/rlm_sql.c
index
07e4228
..
a068c25
100644
(file)
--- a/
src/modules/rlm_sql/rlm_sql.c
+++ b/
src/modules/rlm_sql/rlm_sql.c
@@
-761,12
+761,12
@@
static int rlm_sql_detach(void *instance)
paircompare_unregister(PW_SQL_GROUP, sql_groupcmp);
- if (inst->config->postauth) free(inst->config->postauth);
- if (inst->config->accounting) free(inst->config->accounting);
-
if (inst->config) {
int i;
+ if (inst->config->postauth) free(inst->config->postauth);
+ if (inst->config->accounting) free(inst->config->accounting);
+
if (inst->pool) sql_poolfree(inst);
if (inst->config->xlat_name) {