summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-11-01 10:12:20 -0400
committerMatthew Garrett <mjg@redhat.com>2012-11-01 10:12:20 -0400
commit6f1616265333a7f9b611f7c7ea7f6e0a3054806d (patch)
tree46251f46631fc9ea9ad521a49fe99a38163057dc
parented711b02ec18fecbf8b627b563e8cdfe1253170a (diff)
downloadefi-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.c3
1 files changed, 1 insertions, 2 deletions
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;