From: Russell Bryant Date: Tue, 22 May 2007 13:09:34 +0000 (+0000) Subject: Merged revisions 65389 via svnmerge from X-Git-Tag: 1.4.5~153 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ece55e3de72e8a2ccfb02acfef66defe49a9efbd;p=thirdparty%2Fasterisk.git 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 --- 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; }