R_API void r_buf_free(RBuffer *b) {
	bool unreferenced = b && b->refctr == 0;
	r_buf_fini (b);
	if (unreferenced) {
		free (b);
	}
}
R_API void r_buf_free(RBuffer *b) {
	bool unreferenced = b && b->refctr == 0;
	r_buf_fini (b);
	if (unreferenced) {
		free (b);
	}
}