summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-13 11:04:33 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-13 11:04:33 +0000
commit17f36a76cbf15e088d2973ed5608f93e09827f8a (patch)
treeb6c13e0b6552821b39770011e161d46f8b647065 /modules.c
parent49c52d090aea8dc898cc855278b1054daff1461f (diff)
downloadrsyslog-17f36a76cbf15e088d2973ed5608f93e09827f8a.tar.gz
rsyslog-17f36a76cbf15e088d2973ed5608f93e09827f8a.tar.xz
rsyslog-17f36a76cbf15e088d2973ed5608f93e09827f8a.zip
bugfix: imgssapi segfaulted under some conditions; this fix is actually not
just a fix but a change in the object model. Thanks to varmojfekoj for providing the bug report, an initial fix and lots of good discussion that lead to where we finally ended up.
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules.c b/modules.c
index 70945cae..d5032772 100644
--- a/modules.c
+++ b/modules.c
@@ -484,12 +484,7 @@ modUnlinkAndDestroy(modInfo_t *pThis)
/* finally, we are ready for the module to go away... */
dbgprintf("Unloading module %s\n", modGetName(pThis));
CHKiRet(modPrepareUnload(pThis));
-modInfo_t *prev, *next;
-char *name = strdup(pThis->pszName);
-prev = pThis->pPrev; next = pThis->pNext;
moduleDestruct(pThis);
-dbgprintf("end unload, pThis %p (%s), prev %p, next %p\n", pThis, name, prev, next);
-free(name);
finalize_it:
RETiRet;