mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-27 09:12:42 +00:00
stasis/control.c: Add destructor to timeout_datastore.
The timeout_datastore was missing a destructor resulting in a leak of 16 bytes for every outgoing ARI call. Resolves: #1681
This commit is contained in:
committed by
Asterisk Development Team
parent
5748ff750e
commit
736dddfd4b
@@ -1230,8 +1230,15 @@ static void bridge_after_cb_failed(enum ast_bridge_after_cb_reason reason,
|
||||
* to keep the timeout information local to the channel.
|
||||
* That is what this datastore is for
|
||||
*/
|
||||
|
||||
static void timeout_datastore_data_destructor(void *data)
|
||||
{
|
||||
ast_free(data);
|
||||
}
|
||||
|
||||
struct ast_datastore_info timeout_datastore = {
|
||||
.type = "ARI dial timeout",
|
||||
.destroy = timeout_datastore_data_destructor,
|
||||
};
|
||||
|
||||
static int hangup_channel(struct stasis_app_control *control,
|
||||
|
||||
Reference in New Issue
Block a user