[PATCH 4.16 253/272] perf report: Fix memory corruption in --branch-history mode --branch-history