X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=c021b17bdbefdbcc7e562f496b6ae14917d3d681;hp=f14ea2876fba05a4b8196c4dcafbcf968de32644;hb=77b607597e2a1d78401e448e40f1e03d83748210;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0 diff --git a/recv.c b/recv.c index f14ea287..c021b17b 100644 --- a/recv.c +++ b/recv.c @@ -112,10 +112,11 @@ int main(int argc, char *argv[]) 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;