From 09a64afee35f156cd29ce8ec4d7f771c50e8d684 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Wed, 23 May 2007 08:53:41 +1000 Subject: [PATCH] fix memory leak r1978 | dcl | 2007-05-23 08:53:41 +1000 (Wed, 23 May 2007) | 2 lines --- sicspoll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sicspoll.c b/sicspoll.c index 5c280413..dc0e3aed 100644 --- a/sicspoll.c +++ b/sicspoll.c @@ -50,6 +50,10 @@ void killSicsPoll(void *data){ status = LLDnodePtr2Next(self->pollList); } LLDdelete(self->pollList); + if (self->pDes) { + DeleteDescriptor(self->pDes); + self->pDes = NULL; + } free(self); if(defCon != NULL){ SCDeleteConnection(defCon);