[PATCH 6.18 529/614] perf hist: In init, ensure mem_info is put on error paths