]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - play.c
Fix memory leak in para_play().
[paraslash.git] / play.c
diff --git a/play.c b/play.c
index 055293a905807a7641e382de7e7ff6cd9f8f15a7..8ee91504ffa6181030ababe8335d29b5dd7987fd 100644 (file)
--- a/play.c
+++ b/play.c
@@ -7,6 +7,7 @@
 #include <lopsub.h>
 
 #include "recv_cmd.lsg.h"
+#include "filter_cmd.lsg.h"
 #include "play_cmd.lsg.h"
 #include "write_cmd.lsg.h"
 #include "play.lsg.h"
@@ -256,6 +257,7 @@ static int eof_cleanup(void)
        if (decoder->close)
                decoder->close(&pt->fn);
        btr_remove_node(&pt->fn.btrn);
+       lls_free_parse_result(pt->fn.lpr, FILTER_CMD(pt->fn.filter_num));
        free(pt->fn.conf);
        memset(&pt->fn, 0, sizeof(struct filter_node));