Frees a given pointer
Allocates an amount of memory given by the ByteLength parameter.
Used to allocate a mutable pointer to be given to the Recv functions.