multi: Fixed a memory leak on OOM condition