diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-10 01:19:51 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-10 01:19:51 -0400 |
commit | ed5c170d50b218d5570bea21933a69caf374d8bf (patch) | |
tree | 44a5dfb00d25ae875cb4e427c2974dfc7f7bf4ea | |
parent | 5ba14923f7c68bdb170fa8cf6bdcc54224feb0f6 (diff) |
kernel: filedesc: Fix memory leak in sys_read()
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/kern/kern_filedesc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_filedesc.c b/sys/kern/kern_filedesc.c index e4fe2f6..abea45b 100644 --- a/sys/kern/kern_filedesc.c +++ b/sys/kern/kern_filedesc.c @@ -466,6 +466,7 @@ sys_read(struct syscall_args *args) if (copyout(kbuf, args->arg1, bytes_read) != 0) { invalid_uaddr(args->arg1); } + dynfree(kbuf); return bytes_read; } |