]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a memory leak that I just noticed in the device state handling in app_queue.
authorRussell Bryant <russell@russellbryant.com>
Tue, 22 May 2007 13:07:03 +0000 (13:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 22 May 2007 13:07:03 +0000 (13:07 +0000)
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.2@65389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 712619256d838e7b8a7db60d99fd321b80e18eef..74cee9c42c6dadf611f54a889eecd684e077a579 100644 (file)
@@ -540,6 +540,8 @@ static void *changethread(void *data)
        }
        ast_mutex_unlock(&qlock);
 
+       free(sc);
+
        return NULL;
 }