dt_histogram_worker: fix memleak