[edk2-devel] [PATCH] Local Buffer allocated for Copy of data, is not freed in ShellPkg for CP command

Prarthana Sagar V via groups.io prarthanasv=ami.com at groups.io
Fri Aug 5 17:26:37 UTC 2022


---
 ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
index c3927ca35b..2d7e7d0bb4 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Cp.c
@@ -246,6 +246,7 @@ CopySingleFile (
           break;

         }

       }

+         SHELL_FREE_NON_NULL (Buffer);

     }



     SHELL_FREE_NON_NULL (DestVolumeInfo);

--
2.26.0.windows.1
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92207): https://edk2.groups.io/g/devel/message/92207
Mute This Topic: https://groups.io/mt/92898443/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list