Fix double free

load_image() didn't allocate PathName, don't have it free it.
This commit is contained in:
Matthew Garrett 2012-11-01 10:12:20 -04:00
parent ed711b02ec
commit 6f16162653

3
shim.c
View File

@ -976,8 +976,7 @@ error:
FreePool(*data);
*data = NULL;
}
if (PathName)
FreePool(PathName);
if (fileinfo)
FreePool(fileinfo);
return efi_status;