Minor random fixes.
[paraslash.git] / filter.c
index cfa2e94fad98aa255d38bb22dc9906f6fe863c3f..56afebf3a6ecfed020cf2c6dad065168a80277e0 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -30,8 +30,6 @@
 
 INIT_FILTER_ERRLISTS;
 
 
 INIT_FILTER_ERRLISTS;
 
-#define INBUF_SIZE 32 * 1024
-
 static struct stdin_task stdin_task_struct;
 static struct stdin_task *sit = &stdin_task_struct;
 static struct filter_chain filter_chain_struct;
 static struct stdin_task stdin_task_struct;
 static struct stdin_task *sit = &stdin_task_struct;
 static struct filter_chain filter_chain_struct;
@@ -169,8 +167,8 @@ int main(int argc, char *argv[])
        ret = sched(&s);
 out:
        free(sit->buf);
        ret = sched(&s);
 out:
        free(sit->buf);
+       close_filters(fc);
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
-       close_filters(fc);
        return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
 }
        return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
 }