commit | 63225518e3a6c9f7dae4ecef04304ce124917d05 | [log] [tgz] |
---|---|---|
author | Peng Fan <peng.fan@nxp.com> | Tue Dec 22 17:14:13 2015 +0800 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 04 12:25:35 2016 -0500 |
tree | 4cdba3e789223ca57cfa2e791fe247982d1a146d | |
parent | 41a084aed5ba7bf44540a2a299467e53c599e72e [diff] |
common: cli: avoid memory leak Whether CONFIG_SYS_HUSH_PARSER is defined or not, should always check to free 'buff' to avoid memory leak. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Tom Rini <trini@konsulko.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Simon Glass <sjg@chromium.org>