34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From b116cfe57df2c061cd953b77a0fc1b738dd5fe94 Mon Sep 17 00:00:00 2001
|
|
From: Chet Ramey <chet.ramey@case.edu>
|
|
Date: Fri, 8 Nov 2024 11:13:57 -0500
|
|
Subject: [PATCH] fix for readline redisplay issue in C locale; fix for small
|
|
memory leak in termcap replacement library; updates to formatted
|
|
documentation; fix problem with distclean and y.tab.h; Makefile clean targets
|
|
updates
|
|
|
|
Conflict:only the modified content of lib/termcap/termcap.c is rounded.
|
|
Reference:https://git.savannah.gnu.org/cgit/bash.git/commit/?id=b116cfe57df2c061cd953b77a0fc1b738dd5fe94
|
|
---
|
|
lib/termcap/termcap.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/termcap/termcap.c b/lib/termcap/termcap.c
|
|
index ba3dab2..012cd44 100644
|
|
--- a/lib/termcap/termcap.c
|
|
+++ b/lib/termcap/termcap.c
|
|
@@ -533,7 +533,10 @@ tgetent (bp, name)
|
|
fd = open (termcap_name, O_RDONLY, 0);
|
|
#endif
|
|
if (fd < 0)
|
|
- return -1;
|
|
+ {
|
|
+ free (indirect);
|
|
+ return -1;
|
|
+ }
|
|
|
|
buf.size = BUFSIZE;
|
|
/* Add 1 to size to ensure room for terminating null. */
|
|
--
|
|
2.33.0
|
|
|