@cryptotaxi247 / netdata-1 / commits / f11eb8e07

Return memory freed properly (#13799)

Stelios Fragkakis committed Oct 10, 2022 at 16:42 UTC f11eb8e074ade091107de2992619d1ce51fefeca
1 file changed +1 -1
libnetdata/dictionary/dictionary.c
+1 -1
@@ -1238,7 +1238,7 @@ static size_t dict_item_free_with_hooks(DICTIONARY *dict, DICTIONARY_ITEM *item)
1238 DICTIONARY_STATS_MINUS_MEMORY(dict, key_size, item_size, value_size);
1239
1240 // we return the memory we actually freed
1241 - return item_size + (dict->options & DICT_OPTION_VALUE_LINK_DONT_CLONE)?0:value_size;
1241 + return item_size + ((dict->options & DICT_OPTION_VALUE_LINK_DONT_CLONE) ? 0 : value_size);
1242 }
1243
1244 // ----------------------------------------------------------------------------