From: Andre Noll Date: Mon, 7 Mar 2022 21:02:11 +0000 (+0100) Subject: com_addatt(): Fix memory leak. X-Git-Tag: v0.7.0~3^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=90b212cc7f1842f22b9ae0e1830f515eeee95ceb;p=paraslash.git com_addatt(): Fix memory leak. We miss to free the lopsub parse result on exit. Found by valgrind. --- diff --git a/attribute.c b/attribute.c index f7091727..414a65e6 100644 --- a/attribute.c +++ b/attribute.c @@ -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; }