Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix double free

load_image() didn't allocate PathName, don't have it free it.
  • Loading branch information...
commit 53feaa0152cf2b8e8d62b98a471a915c19f34544 1 parent 24a602b
Matthew Garrett authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.