ofi: add "unused" attribute to rc to prevent compiler warning
ofi: ensure that null_addr is initialized to NULL

And when null_addr is freed, set it back to NULL so that we don't try
to free it again in the error: label.