out:
if (r_opened)
r->close(&rn);
- btr_free_node(rn.btrn);
- btr_free_node(sot.btrn);
+ btr_remove_node(&rn.btrn);
+ btr_remove_node(&sot.btrn);
if (rn.conf)
r->free_config(rn.conf);
+
if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;