[PATCH 6.17 429/507] perf hist: In init, ensure mem_info is put on error paths