filter: Fix a memory leak in non-btr mode.
authorAndre Noll <maan@systemlinux.org>
Tue, 5 Jan 2010 22:06:45 +0000 (23:06 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 5 Jan 2010 22:06:45 +0000 (23:06 +0100)
filter.c
filter_common.c

index 832ca22..e7fc2cd 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -259,7 +259,6 @@ int main(int argc, char *argv[])
        s.default_timeout.tv_sec = 1;
        s.default_timeout.tv_usec = 0;
        ret = schedule(&s);
-       free_filter_confs();
        close_filters(fc);
 out:
        free(sit->buf);
index a4f8868..7fa3080 100644 (file)
@@ -179,6 +179,7 @@ void close_filters(struct filter_chain *fc)
                close_callbacks(fn);
                PARA_INFO_LOG("closing %s filter\n", f->name);
                f->close(fn);
+               free(fn->conf);
        }
        free(fc->filter_nodes);
 }