From 590c3cb14ad6547528ea13805817676e32c204aa Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 28 Mar 2011 18:42:51 +0000 Subject: cp - fix conditional for memory de-allocaiton. string file - fix copyright date. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11443 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib') diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c index 8c0bbce9aa..d71a23cb73 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c @@ -430,7 +430,7 @@ ValidateAndCopyFiles( SHELL_FREE_NON_NULL(DestPath); SHELL_FREE_NON_NULL(HiiOutput); SHELL_FREE_NON_NULL(HiiResultOk); - if (Resp != NULL) { + if (Resp == NULL) { SHELL_FREE_NON_NULL(Response); } -- cgit v1.2.3