r_opened = 1;
if (conf.buffer_tree_given)
- sot.btrn = btr_new_node("stdout", rn.btrn, NULL);
+ sot.btrn = btr_new_node("stdout", rn.btrn, NULL, NULL);
stdout_set_defaults(&sot);
sot.bufp = &rn.buf;
ret = schedule(&s);
out:
+ if (conf.buffer_tree_given)
+ btr_free_node(sot.btrn);
if (r_opened)
r->close(&rn);
if (r)