sched: Kill old ->post_select variant.
[paraslash.git] / filter.c
index 55b48ea257a99a618968bf79c91097e88ecf4dae..7a95b1ebce27427e72579c221eedd8748c73fafd 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
                        EMBRACE(.name = f->name, .parent = parent,
                        .handler = f->execute, .context = fn));
                fn->task.pre_select = f->pre_select;
-               fn->task.post_select = f->post_select;
+               fn->task.new_post_select = f->new_post_select;
                f->open(fn);
                register_task(&s, &fn->task);
                parent = fn->btrn;
@@ -162,7 +162,8 @@ out_cleanup:
                if (f->close)
                        f->close(fn);
                btr_remove_node(&fn->btrn);
-               free(fn->conf);
+               if (f->free_config)
+                       f->free_config(fn->conf);
                free(fn);
        }
        free(fns);