projects
/
mirror_edk2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d32be8
)
BaseTools/VolInfo: Fix file handles not being closed
author
Hao Wu
<hao.a.wu@intel.com>
Tue, 11 Oct 2016 07:57:13 +0000
(15:57 +0800)
committer
Hao Wu
<hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:38:12 +0000
(16:38 +0800)
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/VolInfo/VolInfo.c
patch
|
blob
|
blame
|
history
diff --git
a/BaseTools/Source/C/VolInfo/VolInfo.c
b/BaseTools/Source/C/VolInfo/VolInfo.c
index 312d33221b8c3f56174bab22a9f47f58150f166b..07840bf6698638af1843c978e9cdbebd451f6537 100644
(file)
--- a/
BaseTools/Source/C/VolInfo/VolInfo.c
+++ b/
BaseTools/Source/C/VolInfo/VolInfo.c
@@
-2191,6
+2191,7
@@
Returns:
//
\r
GPtr = malloc (sizeof (GUID_TO_BASENAME));
\r
if (GPtr == NULL) {
\r
+ fclose (Fptr);
\r
return EFI_OUT_OF_RESOURCES;
\r
}
\r
\r