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
This commit is contained in:
Corey Farrell
2017-08-03 22:30:12 -04:00
parent ed1bce956e
commit 84b6a5efd7
4 changed files with 11 additions and 2 deletions

View File

@@ -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;
}