diff options
author | Marvin Borner | 2021-01-09 22:29:05 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-09 22:29:05 +0100 |
commit | f27a5f8af9fc5a16b80a7d6646e44d718b0efd7d (patch) | |
tree | a06eb447cf8452245e7c8f851b17e07e0f4dcb2c /kernel/features | |
parent | dcd28d5246eec562c195fba07c7bd4ce7b69c94b (diff) |
Finding memory leaks is SO exhausting argh
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index c0216bc..76da36d 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -90,7 +90,7 @@ void proc_send(struct proc *src, struct proc *dest, u32 type, void *data) struct proc_message *msg = malloc(sizeof(*msg)); msg->src = src; msg->dest = dest; - msg->msg = malloc(sizeof(struct message)); + msg->msg = malloc(sizeof(*msg->msg)); msg->msg->src = (int)src->pid; msg->msg->type = (int)type; msg->msg->data = data; |