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:
Hao Wu 2018-01-03 16:46:25 +08:00
parent 3710ec21d5
commit 1f7e7e70d2
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}