Fix memory leak in r_io_plugin_init