Page MenuHomeFreeBSD

D9191.diff
No OneTemporary

D9191.diff

Index: head/sys/boot/efi/loader/main.c
===================================================================
--- head/sys/boot/efi/loader/main.c
+++ head/sys/boot/efi/loader/main.c
@@ -219,20 +219,19 @@
if (h == NULL)
break;
- if (efi_handle_lookup(h, dev, unit, extra) == 0) {
- if (copy != NULL)
- free(copy);
+ free(copy);
+ copy = NULL;
+
+ if (efi_handle_lookup(h, dev, unit, extra) == 0)
return (0);
- }
- if (copy != NULL)
- free(copy);
devpath = efi_lookup_devpath(h);
if (devpath != NULL) {
copy = efi_devpath_trim(devpath);
devpath = copy;
}
}
+ free(copy);
/* Try to fallback on first device */
if (devsw[0] != NULL) {

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 5:38 PM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16093973
Default Alt Text
D9191.diff (681 B)

Event Timeline