summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-10-10 16:42:53 +0300
committerGitHub <noreply@github.com>2022-10-10 16:42:53 +0300
commitf11eb8e074ade091107de2992619d1ce51fefeca (patch)
tree806f6d6d961cec921da0882aab98d4ddcee7dff0
parent8bffd8fb8e4a584ce69e0fed0bc7733da0d39625 (diff)
Return memory freed properly (#13799)
-rw-r--r--libnetdata/dictionary/dictionary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/dictionary/dictionary.c b/libnetdata/dictionary/dictionary.c
index 98a9c5a2a8..951e9d9d2b 100644
--- a/libnetdata/dictionary/dictionary.c
+++ b/libnetdata/dictionary/dictionary.c
@@ -1238,7 +1238,7 @@ static size_t dict_item_free_with_hooks(DICTIONARY *dict, DICTIONARY_ITEM *item)
DICTIONARY_STATS_MINUS_MEMORY(dict, key_size, item_size, value_size);
// we return the memory we actually freed
- return item_size + (dict->options & DICT_OPTION_VALUE_LINK_DONT_CLONE)?0:value_size;
+ return item_size + ((dict->options & DICT_OPTION_VALUE_LINK_DONT_CLONE) ? 0 : value_size);
}
// ----------------------------------------------------------------------------