diff options
author | avg <avg@FreeBSD.org> | 2017-06-29 12:49:03 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-06-29 12:49:03 +0000 |
commit | ee49cfe1b1919323a8df1d74c38b41d78ca7d892 (patch) | |
tree | 789b876cca2f19cda97ef49cf37719ebc17ef2bf /sys/compat/linux/linux_file.c | |
parent | c036ae9105f347ab3615c94e8bce9fd5c61c06ca (diff) | |
download | FreeBSD-src-ee49cfe1b1919323a8df1d74c38b41d78ca7d892.zip FreeBSD-src-ee49cfe1b1919323a8df1d74c38b41d78ca7d892.tar.gz |
MFC r320353: linux_getdents, linux_readdir: fix mismatch between malloc and free tags
Approved by: re (gjb)
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r-- | sys/compat/linux/linux_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 6480fc8..a3c28e8 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -394,9 +394,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); } @@ -522,9 +522,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) */ |