[PATCH 4.19 157/245] perf mem2node: Avoid double free related to realloc