This function was never used. It was presented in the code to allow external modules to create mortal reference variables. However later I found that the variable structure design does not allow mortal reference variables and thus this function is nonsense.
Not to change the module interface defintion the function still exists but returns NULL, like if memory were exhausted.
pFixSizeMemoryObject memory_NewMortalRef(pMemoryObject pMo,
If the parameter pMortal is NULL the generated variable is not mortal.