diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 21:22:10 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-17 21:22:10 +0000 |
commit | 55394e09c2fe503f4460f47d9026fc3370edcb86 (patch) | |
tree | a93a10971f948409fa8269d2909d873426fb7022 /apps/app_queue.c | |
parent | f4fd2b3522ec04bb34c8365e6dfee0773af3e430 (diff) |
Merged revisions 165318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r165318 | mmichelson | 2008-12-17 15:17:20 -0600 (Wed, 17 Dec 2008) | 15 lines
Merged revisions 165255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines
Fix some memory leaks found while looking at how realtime
configs are handled.
Also cleaned up some coding guidelines violations in app_realtime.c,
mostly related to spacing
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@165322 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index ed4447848..a20b3d285 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2004,8 +2004,12 @@ static void leave_queue(struct queue_ent *qe) /*If the queue is a realtime queue, check to see if it's still defined in real time*/ if (q->realtime) { - if (!ast_load_realtime("queues", "name", q->name, NULL)) + struct ast_variable *var; + if (!(var = ast_load_realtime("queues", "name", q->name, NULL))) { q->dead = 1; + } else { + ast_variables_destroy(var); + } } if (q->dead) { |