diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-11-01 10:12:20 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-11-01 10:12:20 -0400 |
| commit | 6f1616265333a7f9b611f7c7ea7f6e0a3054806d (patch) | |
| tree | 46251f46631fc9ea9ad521a49fe99a38163057dc | |
| parent | ed711b02ec18fecbf8b627b563e8cdfe1253170a (diff) | |
| download | efi-boot-shim-6f1616265333a7f9b611f7c7ea7f6e0a3054806d.tar.gz efi-boot-shim-6f1616265333a7f9b611f7c7ea7f6e0a3054806d.zip | |
Fix double free
load_image() didn't allocate PathName, don't have it free it.
| -rw-r--r-- | shim.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -976,8 +976,7 @@ error: FreePool(*data); *data = NULL; } - if (PathName) - FreePool(PathName); + if (fileinfo) FreePool(fileinfo); return efi_status; |
