Skip to content
Browse files

Fix double free

load_image() didn't allocate PathName, don't have it free it.
  • Loading branch information...
1 parent 24a602b commit 53feaa0152cf2b8e8d62b98a471a915c19f34544 Matthew Garrett committed Nov 1, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 shim.c
View
3 shim.c
@@ -976,8 +976,7 @@ static EFI_STATUS load_image (EFI_LOADED_IMAGE *li, void **data,
FreePool(*data);
*data = NULL;
}
- if (PathName)
- FreePool(PathName);
+
if (fileinfo)
FreePool(fileinfo);
return efi_status;

0 comments on commit 53feaa0

Please sign in to comment.
Something went wrong with that request. Please try again.