FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_limit.c
This commit is contained in:
parent
8d7c70f91a
commit
0893418d8b
|
@ -47,10 +47,8 @@ static switch_limit_interface_t *get_backend(const char *backend) {
|
|||
}
|
||||
|
||||
static void release_backend(switch_limit_interface_t *limit) {
|
||||
if (limit) {
|
||||
UNPROTECT_INTERFACE(limit);
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_limit_init(switch_memory_pool_t *pool) {
|
||||
if (switch_event_reserve_subclass(LIMIT_EVENT_USAGE) != SWITCH_STATUS_SUCCESS) {
|
||||
|
|
Loading…
Reference in New Issue