Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150930654
D9191.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
681 B
Referenced Files
None
Subscribers
None
D9191.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 12:49 AM (1 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30872286
Default Alt Text
D9191.diff (681 B)
Attached To
Mode
D9191: loader.efi: find_currdev() can leak memory
Attached
Detach File
Event Timeline
Log In to Comment