This is one of those "Use the source, Luke" questions. malloc() is the
normal system malloc() and emalloc() is a #define which points to
_emalloc() which is the internal safety net version. When you get memory
from emalloc(), even if you forget to free it, you won't leak because it
will be clean
Could someone please describe the differences between malloc() and
emalloc()? I'd like to know when I should be using one instead of the
other. I don't see this topic mentioned in the coding standards, and
they appear to be used interchangeably (although not mixed) throughout
the current code.