Merge "Fix the heap-after-use in DurationAnomalyTracker" into pi-dev