aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 13:07:03 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-22 13:07:03 +0000
commit0dbf3bf0163e90aa4b836be4d63753437a5aa5a9 (patch)
tree51f919d83842a8a96b7cb3f2008c16d33a984607 /apps
parentad4f95c84bf994d5aafe3bc502239c50708ea2ea (diff)
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.2@65389 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 712619256..74cee9c42 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;
}