]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_hash.c
authorAndrey Volk <andywolk@gmail.com>
Fri, 12 Jul 2019 16:40:19 +0000 (20:40 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 15 Jul 2019 19:41:34 +0000 (23:41 +0400)
src/switch_core_hash.c

index a6d3ddc68c21ff7ca126410bc4adf1e167a09fb5..a81747bb9f70656af9d929d68986fd79244f4bb4 100644 (file)
@@ -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;
        }