mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
Fix the issue that memory for device path is incorrectly freed, which leads to the bug that Richford recovery fails.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7001 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5384e3d45b
commit
4eac2175c6
@ -1475,10 +1475,6 @@ DevicePathToStr (
|
|||||||
//
|
//
|
||||||
DevPathNode = NextDevicePathNode (DevPathNode);
|
DevPathNode = NextDevicePathNode (DevPathNode);
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// Shrink pool used for string allocation
|
|
||||||
//
|
|
||||||
FreePool (DevPath);
|
|
||||||
|
|
||||||
Done:
|
Done:
|
||||||
NewSize = (Str.len + 1) * sizeof (CHAR16);
|
NewSize = (Str.len + 1) * sizeof (CHAR16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user