[PATCH 150/237] perf mem2node: Avoid double free related to realloc