audiod: kill close_writer()
[paraslash.git] / filter.c
index cfa2e94..ee7e6db 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -169,8 +169,8 @@ int main(int argc, char *argv[])
        ret = sched(&s);
 out:
        free(sit->buf);
+       close_filters(fc);
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
-       close_filters(fc);
        return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
 }