FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_limit.c

This commit is contained in:
Andrey Volk 2019-07-12 20:43:16 +04:00
parent 8d7c70f91a
commit 0893418d8b
1 changed files with 1 additions and 3 deletions

View File

@ -47,9 +47,7 @@ static switch_limit_interface_t *get_backend(const char *backend) {
}
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) {