/*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
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;