[PATCH 036/110] perf mem2node: Avoid double free related to realloc