From bb67a9767078bd98add53ead0e0e2f1390cfb539 Mon Sep 17 00:00:00 2001
From: gdamore malloc.
If memory cannot be allocated for any reason, then NULL will be returned.
Applications that experience this should treat this like NNG_ENOMEM.
Memory returned by nng_alloc can be used to hold message buffers, in which
-case it can be directly passed to nng_send using the flag NNG_FLAG_ALLOC.
-Alternatively, it can be freed when no longer needed using nng_free.
Memory returned by nng_alloc should be freed when no longer needed using nng_free.
-- cgit v1.2.3-70-g09d2