From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 26 Nov 2015 18:52:01 -0800 Subject: [U-Boot] [PATCH V2] common: cli_hush: avoid memory leak In-Reply-To: <1448590322-14135-1-git-send-email-Peng.Fan@freescale.com> References: <1448590322-14135-1-git-send-email-Peng.Fan@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 26 November 2015 at 18:12, Peng Fan wrote: > Need to free memory avoid memory leak, when error. > > Signed-off-by: Peng Fan > Reviewed-by: Simon Glass > Cc: Simon Glass > Cc: Tom Rini > --- > > Changes V2: > Take Simon's comments, fix another memory leak when child->argv is NULL. > Add Simon's review tag. > > common/cli_hush.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) Looks good! - Simon