Topic: [SOLVED] Use of XMALLOC
I'm assuming that I should use XMALLOC instead of malloc when allocating space on the heap. But what should I use for type? The enum value DYNAMIC_TYPE_TMP_BUFFER is mentioned, is this suitable for allocating a byte array of a certain length that I will later free using XFREE?
What are the risks of using malloc and free instead?