mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
[mod_commands] Fix leak of a timer object in timer_test
This commit is contained in:
parent
83a02712f5
commit
2767527c67
@ -967,6 +967,10 @@ SWITCH_STANDARD_API(timer_test_function)
|
||||
stream->write_function(stream, "Avg: %0.3fms Total Time: %0.3fms\n", (float) ((float) (total / (x - 1)) / 1000),
|
||||
(float) ((float) (end - start) / 1000));
|
||||
|
||||
if (switch_core_timer_destroy(&timer) != SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "Timer Destroy Error!\n");
|
||||
}
|
||||
|
||||
end:
|
||||
|
||||
switch_core_destroy_memory_pool(&pool);
|
||||
|
Loading…
x
Reference in New Issue
Block a user