less/backport-Minor-memory-leak.patch

24 lines
464 B
Diff
Raw Normal View History

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