Fix memory leak issues.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13288 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -739,9 +739,11 @@ BdsLibVariableToOption (
|
||||
}
|
||||
|
||||
FreePool (Variable);
|
||||
FreePool (Option->Description);
|
||||
FreePool (Option->DevicePath);
|
||||
FreePool (Option->LoadOptions);
|
||||
FreePool (Option);
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user