]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/DevicePath/DevicePath.c
BaseTools/DevicePath: Fix potential memory leak
[mirror_edk2.git] / BaseTools / Source / C / DevicePath / DevicePath.c
index 76b8553b7145296b886176151eedf66fc8a93fb9..9185b89e35e21e62b9360f0636da1330aa757053 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Definition for Device Path Tool.\r
 \r
-Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -190,5 +190,6 @@ int main(int argc, CHAR8 *argv[])
   }\r
   PrintMem (DevicePath, DevicePath->Length[0] | DevicePath->Length[1] << 8);\r
   putchar('\n');\r
+  free(Str16);\r
   return STATUS_SUCCESS;\r
 }\r