diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2016-11-24 17:20:23 +0000 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2024-06-12 21:34:52 +0100 |
commit | 3ddf76ae4b2cd087feea7bc2167795ef807df278 (patch) | |
tree | 6eabd9d0f0f068ff5a4c024f2f724739e87764bf | |
parent | b468fe7277cdbed26fd74d33ca9a94cba3f99d00 (diff) |
STATISTICScleanup
problem with remove... add can return same pointer but have no
reference counting
-rw-r--r-- | server/red-worker.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/red-worker.cpp b/server/red-worker.cpp index 3880531b..803a744d 100644 --- a/server/red-worker.cpp +++ b/server/red-worker.cpp @@ -1074,6 +1074,13 @@ void red_worker_free(RedWorker *worker) red_worker_close_channel(worker->display_channel); worker->display_channel = nullptr; + /* wanted ?? */ +#if 0 + stat_remove_counter(reds, &worker->wakeup_counter); + stat_remove_counter(reds, &worker->command_counter); + stat_remove_node(reds, &worker->stat); +#endif + if (worker->dispatch_watch) { red_watch_remove(worker->dispatch_watch); } |