[PATCH v2] tracing/histograms: Fix memory leak problem