From 6f1616265333a7f9b611f7c7ea7f6e0a3054806d Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 1 Nov 2012 10:12:20 -0400 Subject: Fix double free load_image() didn't allocate PathName, don't have it free it. --- shim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shim.c') diff --git a/shim.c b/shim.c index 8fbc0708..8c039159 100644 --- a/shim.c +++ b/shim.c @@ -976,8 +976,7 @@ error: FreePool(*data); *data = NULL; } - if (PathName) - FreePool(PathName); + if (fileinfo) FreePool(fileinfo); return efi_status; -- cgit v1.2.3