1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-06-15 20:38:10 +02:00

unposted: fix bad pointer found by valgrind

This commit is contained in:
Bart Schaefer 2025-05-09 17:00:33 -07:00
parent abd541e18c
commit 1706805d46
2 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2025-05-09 Bart Schaefer <schaefer@zsh.org>
* unposted: Src/params.c: fix bad pointer found by valgrind
* 53568: Doc/Zsh/expn.yo, Doc/Zsh/params.yo, Src/params.c,
Test/K01nameref.ztst: fix additional problems with references
whose referent goes out of scope, add corresponding tests, and

View file

@ -5893,6 +5893,7 @@ scanendscope(HashNode hn, UNUSED(int flags))
export_param(pm);
} else
unsetparam_pm(pm, 0, 0);
pm = NULL;
}
if (hidden)
pm = hidden;