aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-06-26 09:13:25 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-06-26 09:13:25 +0000
commit16454bee3a2ccd6a7e13406d08d040adf97bfb36 (patch)
tree69785c1a92e9d65fca771024d4c18e15cb758906 /sys/compat/linux/linux_file.c
parentc20b00c6af735c209ac9376153d80eea13639c0b (diff)
downloadsrc-16454bee3a2ccd6a7e13406d08d040adf97bfb36.tar.gz
src-16454bee3a2ccd6a7e13406d08d040adf97bfb36.zip
linux_getdents, linux_readdir: fix mismatch between malloc and free tags
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=320353
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index f4926873136e..c66c37e0ccfa 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -381,9 +381,9 @@ linux_getdents(struct thread *td, struct linux_getdents_args *args)
td->td_retval[0] = retval;
out:
- free(lbuf, M_LINUX);
+ free(lbuf, M_TEMP);
out1:
- free(buf, M_LINUX);
+ free(buf, M_TEMP);
return (error);
}
@@ -507,9 +507,9 @@ linux_readdir(struct thread *td, struct linux_readdir_args *args)
if (error == 0)
td->td_retval[0] = linuxreclen;
- free(lbuf, M_LINUX);
+ free(lbuf, M_TEMP);
out:
- free(buf, M_LINUX);
+ free(buf, M_TEMP);
return (error);
}
#endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */