BaseTools/DevicePath: Fix potential memory leak
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit 46cced287e
)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Definition for Device Path Tool.
|
||||
|
||||
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -190,5 +190,6 @@ int main(int argc, CHAR8 *argv[])
|
||||
}
|
||||
PrintMem (DevicePath, DevicePath->Length[0] | DevicePath->Length[1] << 8);
|
||||
putchar('\n');
|
||||
free(Str16);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user