#include <regex.h>
#include <sys/types.h>
#include <dirent.h>
+#include <stdbool.h>
#include "para.h"
#include "list.h"
#include "string.h"
#include "error.h"
#include "stdout.h"
+#include "buffer_tree.h"
/** The gengetopt args info struct. */
static struct recv_args_info conf;
}
r = &receivers[receiver_num];
rn.receiver = r;
+ rn.btrn = btr_new_node("receiver", NULL /* no parent */);
ret = r->open(&rn);
if (ret < 0)
goto out;
ret = schedule(&s);
out:
- if (r_opened)
+ if (r_opened) {
+ btr_del_node(rn.btrn);
r->close(&rn);
+ }
if (r)
r->shutdown();
if (ret < 0)