mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 17:41:53 +00:00
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) {
|
static void release_backend(switch_limit_interface_t *limit) {
|
||||||
if (limit) {
|
|
||||||
UNPROTECT_INTERFACE(limit);
|
UNPROTECT_INTERFACE(limit);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
SWITCH_DECLARE(void) switch_limit_init(switch_memory_pool_t *pool) {
|
SWITCH_DECLARE(void) switch_limit_init(switch_memory_pool_t *pool) {
|
||||||
if (switch_event_reserve_subclass(LIMIT_EVENT_USAGE) != SWITCH_STATUS_SUCCESS) {
|
if (switch_event_reserve_subclass(LIMIT_EVENT_USAGE) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user