From 4793e8dd226b49ea0b931504c84f21449ab8f704 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 26 Aug 2021 19:31:25 +0200 Subject: [PATCH] afh: Avoid memory leak at exit. We missed to free the lopsub parse result. This is not a real leak because it's a one-off allocation and we are about to exit anyway. It's worth to fix nevertheless, though, because with the patch applied, valgrind says "no leaks are possible". Hence any other output means we have introduced a new memory leak. --- afh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/afh.c b/afh.c index 567b560a..c896a7d1 100644 --- a/afh.c +++ b/afh.c @@ -258,5 +258,6 @@ out: PARA_ERROR_LOG("%s\n", errctx); if (ret < 0) PARA_EMERG_LOG("%s\n", para_strerror(-ret)); + lls_free_parse_result(lpr, CMD_PTR); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS; } -- 2.39.2