From 90b212cc7f1842f22b9ae0e1830f515eeee95ceb Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Mar 2022 22:02:11 +0100 Subject: [PATCH] com_addatt(): Fix memory leak. We miss to free the lopsub parse result on exit. Found by valgrind. --- attribute.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2