diff options
author | Corey Farrell <git@cfware.com> | 2017-08-03 22:30:12 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-08-03 21:31:38 -0500 |
commit | 84b6a5efd7503817912958f3203bca15b37d3398 (patch) | |
tree | feca22b6e368a363bb99783a429105ce386c7315 /channels | |
parent | ed1bce956e30d9f8ec8defcbae33ea3217dd8fb6 (diff) |
Correct some leaks in unit tests.
* chan_sip: channel in test_sip_rtpqos_1.
* test_config: config hook, config info and global config holder.
* test_core_format: format in format_attribute_set_without_interface.
* test_stream: unneeded frame duplication.
* test_taskprocessor: task_data.
Change-Id: I94d364d195cf3b3b5de2bf3ad565343275c7ad31
Diffstat (limited to 'channels')
-rw-r--r-- | channels/sip/dialplan_functions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/sip/dialplan_functions.c b/channels/sip/dialplan_functions.c index b859c601b..af443fd51 100644 --- a/channels/sip/dialplan_functions.c +++ b/channels/sip/dialplan_functions.c @@ -486,6 +486,9 @@ done: dialog_unlink_all(p); dialog_unref(p, "Destroy test object"); } + if (chan) { + ast_channel_unref(chan); + } ast_rtp_engine_unregister(&test_engine); return res; } |