summaryrefslogtreecommitdiffstats
path: root/common/hush.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-03-22 07:55:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-22 10:18:42 +0100
commitca2cc1e48bbcbc9b3d20d20d859e6d2dc351ec36 (patch)
tree1cc55ff1377cc4d006831caf0281b0e1ab0485a5 /common/hush.c
parentf8bea406c27220e053e6adecba7729f93de9768d (diff)
downloadbarebox-ca2cc1e48bbcbc9b3d20d20d859e6d2dc351ec36.tar.gz
barebox-ca2cc1e48bbcbc9b3d20d20d859e6d2dc351ec36.tar.xz
commands: readline: fix memory leak on wrong usage
Later error-handling frees buf, but the first early exit doesn't. Move buf beyond it to fix the memory leak. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/hush.c')
0 files changed, 0 insertions, 0 deletions