para_write: Fix memory leak.
authorAndre Noll <maan@systemlinux.org>
Mon, 21 Feb 2011 07:13:15 +0000 (08:13 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 21 Feb 2011 07:13:15 +0000 (08:13 +0100)
We missed to call the ->free_config() method of the writer(s).

write.c

diff --git a/write.c b/write.c
index dda1b70..2ea9d21 100644 (file)
--- a/write.c
+++ b/write.c
@@ -216,6 +216,7 @@ out:
 
                w->close(wn);
                btr_free_node(wn->btrn);
+               w->free_config(wn->conf);
                free(wn->conf);
        }
        free(wns);