mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@165318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2205,8 +2205,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, SENTINEL))
|
||||
struct ast_variable *var;
|
||||
if (!(var = ast_load_realtime("queues", "name", q->name, SENTINEL))) {
|
||||
q->dead = 1;
|
||||
} else {
|
||||
ast_variables_destroy(var);
|
||||
}
|
||||
}
|
||||
|
||||
if (q->dead) {
|
||||
|
Reference in New Issue
Block a user