Added out of memory handling to MM_Allocate

UCC git Repository :: git.ucc.asn.au