]> code.ossystems Code Review - openembedded-core.git/commit
bash: memleak bug fix for builtin command read
authorZhang Xiao <xiao.zhang@windriver.com>
Fri, 25 Aug 2017 00:42:38 +0000 (08:42 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Aug 2017 21:29:44 +0000 (22:29 +0100)
commita2b278a6eaa9e9b48d858e3be6712267c0122598
tree8aae146994ea4cb6dcac67461a1714530be25ecc
parenta615b0825927a09a0aa8312d131c9acbaef8956d
bash: memleak bug fix for builtin command read

Built in command "read" with "-e" use Readline to obtain the line
in an interactive shell. In this process, a string "rlbuf" is
just allocated without free operation thus cause memory leak.

This patch had been submitted to upstream:
http://lists.gnu.org/archive/html/bug-bash/2017-02/msg00061.html

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/bash/bash/bash-memleak-bug-fix-for-builtin-command-read.patch [new file with mode: 0644]
meta/recipes-extended/bash/bash_4.4.bb