summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_main.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ab329c767..a6b7905fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2023-07-26 Bart Schaefer <schaefer@zsh.org>
+ * 51950 (tweak per 51949): Src/Zle/zle_main.c: correct Thingy
+ refcount in raw_getbyte()
+
* Shohei YOSHIDA: 51927: Completion/Unix/Command/_watch: Update
procps watch completion for version 4.0.3
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 4a6c02133..1afb1bf58 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -737,7 +737,7 @@ raw_getbyte(long do_keytmout, char *cptr, int full)
) {
/* Handle the fd. */
char *fdbuf;
- Thingy save_lbindk = lbindk;
+ Thingy save_lbindk = refthingy(lbindk);
{
char buf[BDIGBUFSIZE];
convbase(buf, lwatch_fd->fd, 10);
@@ -780,6 +780,7 @@ raw_getbyte(long do_keytmout, char *cptr, int full)
*/
errtry = 1;
}
+ unrefthingy(lbindk);
lbindk = save_lbindk;
}
}