boot: Use FreePool from boot services directly

This should hopefully allow the compiler to optimize this a bit even
when gnu-efi is not compiled with LTO.
This commit is contained in:
Jan Janssen
2022-01-13 14:30:51 +01:00
parent 27c106bab8
commit 2d1ac308c5
+1 -1
View File
@@ -79,7 +79,7 @@ static inline void free_poolp(void *p) {
if (!q)
return;
FreePool(q);
(void) BS->FreePool(q);
}
#define _cleanup_freepool_ _cleanup_(free_poolp)