From: Andrey Volk Date: Fri, 12 Jul 2019 16:40:19 +0000 (+0400) Subject: FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_hash.c X-Git-Tag: v1.10.0~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f245196e823cf04962033754a27ee3c48d5d85a4;p=thirdparty%2Ffreeswitch.git FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_hash.c --- diff --git a/src/switch_core_hash.c b/src/switch_core_hash.c index a6d3ddc68c..a81747bb9f 100644 --- a/src/switch_core_hash.c +++ b/src/switch_core_hash.c @@ -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); if (hi) { - switch_safe_free(hi); + free(hi); return SWITCH_FALSE; }