aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-01-09 22:29:05 +0100
committerMarvin Borner2021-01-09 22:29:05 +0100
commitf27a5f8af9fc5a16b80a7d6646e44d718b0efd7d (patch)
treea06eb447cf8452245e7c8f851b17e07e0f4dcb2c /kernel/drivers
parentdcd28d5246eec562c195fba07c7bd4ce7b69c94b (diff)
Finding memory leaks is SO exhausting argh
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/keyboard.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/drivers/keyboard.c b/kernel/drivers/keyboard.c
index ac97d36..e8690f1 100644
--- a/kernel/drivers/keyboard.c
+++ b/kernel/drivers/keyboard.c
@@ -28,8 +28,6 @@ void keyboard_handler()
// TODO: "Merge" scancode to linux keycode?
/* printf("%x %x = %x\n", scancode, state ? 0xe0 : 0, merged); */
- if (event)
- free(event);
event = malloc(sizeof(*event));
event->magic = KEYBOARD_MAGIC;
event->press = (scancode & 0x80) == 0;