From ece55e3de72e8a2ccfb02acfef66defe49a9efbd Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 22 May 2007 13:09:34 +0000 Subject: [PATCH] Merged revisions 65389 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r65389 | russell | 2007-05-22 08:07:03 -0500 (Tue, 22 May 2007) | 4 lines Fix a memory leak that I just noticed in the device state handling in app_queue. On most device state changes, it would leak roughly 8 to 64 bytes (the length of the name of the device). ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65394 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app_queue.c b/apps/app_queue.c index c21b36bd17..73e0117c45 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -587,6 +587,8 @@ static void *changethread(void *data) } AST_LIST_UNLOCK(&queues); + free(sc); + return NULL; }