summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/sendfile.c
diff options
context:
space:
mode:
authorstevel <none@none>2006-08-04 07:55:25 -0700
committerstevel <none@none>2006-08-04 07:55:25 -0700
commit2db6c79fde1d8094a793df2ea0cc037b90e044d3 (patch)
treea5049b118a4ed78d3d6713534eb3e865d8d2b92a /usr/src/uts/common/syscall/sendfile.c
parent989ae01eec5c26a7b27752272e150aab77c6fa47 (diff)
downloadillumos-joyent-2db6c79fde1d8094a793df2ea0cc037b90e044d3.tar.gz
6399793 memory leak in sendvec_chunk
6423317 missing sched provider "wakeup" probe in cv_unsleep() as seen via select(3c)
Diffstat (limited to 'usr/src/uts/common/syscall/sendfile.c')
-rw-r--r--usr/src/uts/common/syscall/sendfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/sendfile.c b/usr/src/uts/common/syscall/sendfile.c
index 9cb5487c02..fa707ad874 100644
--- a/usr/src/uts/common/syscall/sendfile.c
+++ b/usr/src/uts/common/syscall/sendfile.c
@@ -1081,6 +1081,7 @@ sendvec_chunk(file_t *fp, u_offset_t *fileoff, struct sendfilevec *sfv,
*fileoff += cnt;
*count += cnt;
if (error != 0) {
+ kmem_free(buf, size);
VOP_RWUNLOCK(readvp, readflg,
NULL);
releasef(sfv->sfv_fd);