mem: add argument to memory event callback