- free more memory on exit

This commit is contained in:
zolliker
2008-01-18 07:19:29 +00:00
parent dbabdbee49
commit 07b3a08784
2 changed files with 6 additions and 0 deletions

View File

@ -487,6 +487,9 @@ extern char *SkipSpace(char *pPtr);
/* printf("Deleting %s\n",pCurrent->pName); */
free(pCurrent->pName);
}
if (pCurrent->stat) {
StatisticsKill(pCurrent->stat);
}
pTemp = pCurrent->pPrevious;
free(pCurrent);
pCurrent = pTemp;

View File

@ -50,6 +50,9 @@ void killSicsPoll(void *data){
status = LLDnodePtr2Next(self->pollList);
}
LLDdelete(self->pollList);
if(self->pDes) {
DeleteDescriptor(self->pDes);
}
free(self);
if(defCon != NULL){
SCDeleteConnection(defCon);