aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 13:09:34 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 13:09:34 +0000
commitaec2973d1082b5ef9b50fb7b4310edf5b4cfeb90 (patch)
treefa2f465eba1861851ef3bada660531a75161cefb /apps
parent1b46de07cb2bca35abda6e35bb2b314f41e7d634 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@65394 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index c21b36bd1..73e0117c4 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;
}