From: Russell Bryant Date: Tue, 22 May 2007 13:07:03 +0000 (+0000) Subject: Fix a memory leak that I just noticed in the device state handling in app_queue. X-Git-Tag: 1.2.19~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ad1351344a5382ebef25652ea711d7d1f7ebc1;p=thirdparty%2Fasterisk.git 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.2@65389 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 712619256d..74cee9c42c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -540,6 +540,8 @@ static void *changethread(void *data) } ast_mutex_unlock(&qlock); + free(sc); + return NULL; }