mirror of https://github.com/acidanthera/audk.git
BaseTools/C/Common: 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>
This commit is contained in:
parent
3710ec21d5
commit
1f7e7e70d2
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
This file contains the PcdValue structure definition.
|
||||
|
||||
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
|
||||
|
@ -106,6 +106,9 @@ Returns:
|
|||
case 5:
|
||||
PcdList[PcdIndex].Value = Token;
|
||||
break;
|
||||
default:
|
||||
free (Token);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue