diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-22 13:07:03 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-22 13:07:03 +0000 |
commit | 0dbf3bf0163e90aa4b836be4d63753437a5aa5a9 (patch) | |
tree | 51f919d83842a8a96b7cb3f2008c16d33a984607 | |
parent | ad4f95c84bf994d5aafe3bc502239c50708ea2ea (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
-rw-r--r-- | apps/app_queue.c | 2 |
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; } |