size
is the number of bytes to allocate.
duration
is the lifetime of the allocated memory. Typically, the user specifies PER_COMMAND so that the memory will persist longer than the default PER_FUNCTION duration.
Yes