From fb5a6a871c718bbe6b841d1a2b6c5fd2d7859ce8 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Wed, 26 Jul 2023 19:49:50 -0700 Subject: [PATCH] 51950 (tweak per 51949): correct Thingy refcount in raw_getbyte() --- ChangeLog | 3 +++ Src/Zle/zle_main.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ab329c767..a6b7905fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-07-26 Bart Schaefer + * 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; } }