diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-08-17 23:53:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 23:53:28 +0300 |
commit | b44b77885c485279c3ee077e526855b17620beed (patch) | |
tree | bf09566cb64bfd2d86a4300e1f0431590e375269 | |
parent | 13a04de917d152430a75b0ec960816e8ba923f0f (diff) |
Fix CID 382964: Code maintainability issues (SIZEOF_MISMATCH) (#15833)
-rw-r--r-- | streaming/replication.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/replication.c b/streaming/replication.c index 0e5a0b4071..ffb6b3def3 100644 --- a/streaming/replication.c +++ b/streaming/replication.c @@ -1838,7 +1838,7 @@ static void replication_main_cleanup(void *ptr) { } freez(replication_globals.main_thread.threads_ptrs); replication_globals.main_thread.threads_ptrs = NULL; - __atomic_sub_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t *), __ATOMIC_RELAXED); + __atomic_sub_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t), __ATOMIC_RELAXED); aral_destroy(replication_globals.aral_rse); replication_globals.aral_rse = NULL; @@ -1867,7 +1867,7 @@ void *replication_thread_main(void *ptr __maybe_unused) { if(--threads) { replication_globals.main_thread.threads = threads; replication_globals.main_thread.threads_ptrs = mallocz(threads * sizeof(netdata_thread_t *)); - __atomic_add_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t *), __ATOMIC_RELAXED); + __atomic_add_fetch(&replication_buffers_allocated, threads * sizeof(netdata_thread_t), __ATOMIC_RELAXED); for(int i = 0; i < threads ;i++) { char tag[NETDATA_THREAD_TAG_MAX + 1]; |