less/backport-Minor-memory-leak.patch
fuanan 106665619f [Backport]less:[add]backport patches from upstream
(cherry picked from commit a8a5443922ca981d8dade16e8981f4f415a3f7cc)
2021-05-28 17:35:58 +08:00

24 lines
464 B
Diff

From f15f9d3659f0ed5a49d1dff97603e32d6769b15d Mon Sep 17 00:00:00 2001
From: Mark Nudelman <markn@greenwoodsoftware.com>
Date: Sat, 21 Mar 2020 12:55:46 -0700
Subject: [PATCH] Minor memory leak.
---
ch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ch.c b/ch.c
index 58f68e7..062a8e9 100644
--- a/ch.c
+++ b/ch.c
@@ -401,6 +401,7 @@ end_logfile(VOID_PARAM)
}
close(logfile);
logfile = -1;
+ free(namelogfile);
namelogfile = NULL;
}
--
1.8.3.1