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
commit53feaa0152cf2b8e8d62b98a471a915c19f34544 (patch)
tree46251f46631fc9ea9ad521a49fe99a38163057dc
parent24a602b6145a86b0fc4c789f7a4a0bdfe5afdefa (diff)
downloadefi-boot-shim-53feaa0152cf2b8e8d62b98a471a915c19f34544.tar.gz
efi-boot-shim-53feaa0152cf2b8e8d62b98a471a915c19f34544.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;