projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ca423
)
Free insthandle if there's no detach function
author
Alan T. DeKok
<aland@freeradius.org>
Tue, 3 Feb 2009 13:33:29 +0000
(14:33 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Tue, 3 Feb 2009 13:33:29 +0000
(14:33 +0100)
src/main/modules.c
patch
|
blob
|
history
diff --git
a/src/main/modules.c
b/src/main/modules.c
index
91215e9
..
0779de4
100644
(file)
--- a/
src/main/modules.c
+++ b/
src/main/modules.c
@@
-198,6
+198,8
@@
static void module_instance_free_old(CONF_SECTION *cs, module_instance_t *node,
if (node->entry->module->detach) {
(node->entry->module->detach)(mh->insthandle);
+ } else {
+ free(mh->insthandle);
}
*last = mh->next;