summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBrett Bryant <bbryant@digium.com>2008-07-15 18:14:02 +0000
committerBrett Bryant <bbryant@digium.com>2008-07-15 18:14:02 +0000
commitfe874bfe6b3b1acb79217d34e713c134d720606a (patch)
tree8033a126d8b56e8c2f70890244be97dc8d653624 /apps
parentaf63bd58b7ef1922d65afb8ca05e55925b77ba4f (diff)
Fix memory leak in app_queue when a device state is changed but it isn't
a member of any queue. (closes issue #13073) Reported by: eliel Patches: app_queue.c.patch uploaded by eliel (license 64) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@131015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 61630d14d..fef9685bd 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -782,6 +782,7 @@ static int handle_statechange(void *datap)
if (!curint) {
if (option_debug > 2)
ast_log(LOG_DEBUG, "Device '%s/%s' changed to state '%d' (%s) but we don't care because they're not a member of any queue.\n", technology, loc, sc->state, devstate2str(sc->state));
+ ast_free(sc);
return 0;
}