diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-10-10 16:42:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 16:42:53 +0300 |
commit | f11eb8e074ade091107de2992619d1ce51fefeca (patch) | |
tree | 806f6d6d961cec921da0882aab98d4ddcee7dff0 /libnetdata/dictionary/dictionary.c | |
parent | 8bffd8fb8e4a584ce69e0fed0bc7733da0d39625 (diff) |
Return memory freed properly (#13799)
Diffstat (limited to 'libnetdata/dictionary/dictionary.c')
-rw-r--r-- | libnetdata/dictionary/dictionary.c | 2 |
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); } // ---------------------------------------------------------------------------- |