Free a given reference and automatically free the buffer if there are no more references to it.
@param buf the reference to be freed. The pointer is set to NULL on return.
See Implementation
Free a given reference and automatically free the buffer if there are no more references to it.
@param buf the reference to be freed. The pointer is set to NULL on return.