Fix leaks.
This commit is contained in:
parent
79d286a56f
commit
da6ab904f8
@ -262,6 +262,8 @@ open_keyboards(int target, const char* start, struct keyboard* previous)
|
||||
B_URGENT_DISPLAY_PRIORITY, keyboard);
|
||||
if (keyboard->thread < 0) {
|
||||
close(fd);
|
||||
closedir(dir);
|
||||
delete keyboard;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user