]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenSec/GenSec.c
BaseTools/GenSec: Fix potential memory leak
[mirror_edk2.git] / BaseTools / Source / C / GenSec / GenSec.c
index 5545f12b74a8d2c15a70950ea57e45ce92a7cadb..01d3bc4448089fdd30543e7f567346bf82217697 100644 (file)
@@ -1670,7 +1670,11 @@ Finish:
   if (OutFile != NULL) {\r
     fclose (OutFile);\r
   }\r
-  \r
+\r
+  if (DummyFileBuffer != NULL) {\r
+    free (DummyFileBuffer);\r
+  }\r
+\r
   VerboseMsg ("%s tool done with return code is 0x%x.", UTILITY_NAME, GetUtilityStatus ());\r
 \r
   return GetUtilityStatus ();\r