]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 65389 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 22 May 2007 13:09:34 +0000 (13:09 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 22 May 2007 13:09:34 +0000 (13:09 +0000)
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

index c21b36bd17fe194b7eaaa9b6f02e128bc39a5109..73e0117c458442da15677d15b11fac7efc03cc04 100644 (file)
@@ -587,6 +587,8 @@ static void *changethread(void *data)
        }
        AST_LIST_UNLOCK(&queues);
 
+       free(sc);
+
        return NULL;
 }