]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
com_addatt(): Fix memory leak.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 7 Mar 2022 21:02:11 +0000 (22:02 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 12 Mar 2022 15:47:16 +0000 (16:47 +0100)
We miss to free the lopsub parse result on exit. Found by valgrind.

attribute.c

index f7091727bc5b62518f91436de9428ba6c14b5a86..414a65e6526fabc08ccabaec07694423665b4442 100644 (file)
@@ -236,6 +236,7 @@ out:
        if (ret < 0)
                para_printf(&aca->pbout, "error while adding %s\n",
                        lls_input(i, aca->lpr));
+       lls_free_parse_result(aca->lpr, cmd);
        return ret;
 }