InOsEmuPkg PosixFileSystem: Fix memory corruption issue

Signed-off-by: jljusten

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11660 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2011-05-16 04:47:00 +00:00
parent 1c3b10105a
commit 0c493bf4ac
1 changed files with 1 additions and 1 deletions

View File

@ -1493,7 +1493,7 @@ PosixFileSystmeThunkOpen (
Private->FilePath[i] = 0;
Private->VolumeLabel = malloc (StrLen (L"EFI_EMULATED"));
Private->VolumeLabel = malloc (StrSize (L"EFI_EMULATED"));
if (Private->VolumeLabel == NULL) {
free (Private->FilePath);
free (Private);