mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
(closes issue #11431)
Reported by: Laureano Patches: app_queue.c.patch uploaded by Laureano (license 265) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -729,15 +729,15 @@ static void *device_state_thread(void *data)
|
|||||||
|
|
||||||
handle_statechange(sc);
|
handle_statechange(sc);
|
||||||
|
|
||||||
free(sc);
|
ast_free(sc);
|
||||||
sc = NULL;
|
sc = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sc)
|
if (sc)
|
||||||
free(sc);
|
ast_free(sc);
|
||||||
|
|
||||||
while ((sc = AST_LIST_REMOVE_HEAD(&device_state.state_change_q, entry)))
|
while ((sc = AST_LIST_REMOVE_HEAD(&device_state.state_change_q, entry)))
|
||||||
free(sc);
|
ast_free(sc);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -2829,7 +2829,7 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
ao2_ref(cur, -1);
|
ao2_ref(cur, -1);
|
||||||
free(tmp);
|
ast_free(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (qe->expire && (!qe->parent->timeout || (qe->expire - now) <= qe->parent->timeout))
|
if (qe->expire && (!qe->parent->timeout || (qe->expire - now) <= qe->parent->timeout))
|
||||||
|
Reference in New Issue
Block a user