[PATCH 4.14 481/496] perf report: Fix memory corruption in --branch-history mode --branch-history