]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 dda1b705c19151000dd08098f99d2b9d4c71f11c..2ea9d2132bee5f64224f3f9d635af8f83777a33e 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);