summaryrefslogtreecommitdiff
path: root/sys/kern/kern_filedesc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_filedesc.c')
-rw-r--r--sys/kern/kern_filedesc.c1
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;
}