FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_hash.c
This commit is contained in:
parent
b6f98bdce0
commit
f245196e82
|
@ -218,7 +218,7 @@ SWITCH_DECLARE(switch_bool_t) switch_core_hash_empty(switch_hash_t *hash)
|
||||||
switch_hash_index_t *hi = switch_core_hash_first(hash);
|
switch_hash_index_t *hi = switch_core_hash_first(hash);
|
||||||
|
|
||||||
if (hi) {
|
if (hi) {
|
||||||
switch_safe_free(hi);
|
free(hi);
|
||||||
return SWITCH_FALSE;
|
return SWITCH_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue