recv improvements.
[paraslash.git] / http_recv.c
index 20e0003..0b83cb4 100644 (file)
@@ -180,6 +180,7 @@ static void http_recv_close(struct receiver_node *rn)
        close(phd->fd);
        free(rn->buf);
        free(rn->private_data);
+       http_recv_cmdline_parser_free(rn->conf);
 }
 
 static void *http_recv_parse_config(int argc, char **argv)
@@ -211,8 +212,6 @@ static int http_recv_open(struct receiver_node *rn)
        rn->private_data = phd = para_calloc(sizeof(struct private_http_recv_data));
        phd->fd = fd;
        phd->status = HTTP_CONNECTED;
-       if (conf->buffer_tree_given)
-               rn->btrn = btr_new_node("receiver", NULL, NULL, NULL);
        return 1;
 }