X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=1bb0532a9f51622e645bd69074b19504be9068f6;hp=9d6f028319fc6e1e8f36f7406fc64475fb3576df;hb=4b694c91983ce8c70562a8fa1d897e426f8e870b;hpb=2aa98426fca67a8b9c075ca7efea54aef18c0380 diff --git a/recv.c b/recv.c index 9d6f0283..1bb0532a 100644 --- a/recv.c +++ b/recv.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "para.h" #include "list.h" @@ -20,6 +21,7 @@ #include "string.h" #include "error.h" #include "stdout.h" +#include "buffer_tree.h" /** The gengetopt args info struct. */ static struct recv_args_info conf; @@ -90,6 +92,7 @@ int main(int argc, char *argv[]) } 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; @@ -108,8 +111,10 @@ int main(int argc, char *argv[]) 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)