mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
libast: optget(3): Fix memory leak in --help/--man info
src/lib/libast/misc/optget.c: textout(): case ']': - Before returning, call pop() to free any \f...\f info items that are left. Note that this is a safe no-op if the pointer is null. Resolves: https://github.com/ksh93/ksh/issues/407 Co-authored-by: Martijn Dekker <martijn@inlv.org>
This commit is contained in:
parent
fd28da31da
commit
86b94d9feb
3 changed files with 5 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ DO
|
|||
DONE
|
||||
|
||||
# ======
|
||||
TEST title='showing --man info' known=y url=https://github.com/ksh93/ksh/issues/407
|
||||
TEST title='showing --man info'
|
||||
DO
|
||||
set --man 2>/dev/null
|
||||
ulimit --man 2>/dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue