From 17f36a76cbf15e088d2973ed5608f93e09827f8a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 13 Mar 2008 11:04:33 +0000 Subject: 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. --- modules.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'modules.c') 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; -- cgit v1.2.3