From 7570a35b70a33258e4c36e080e900f30c3213697 Mon Sep 17 00:00:00 2001 From: Shannen Saez Date: Wed, 10 Apr 2013 14:15:13 +0200 Subject: [PATCH] windows: fix memory leak in fs__sendfile --- src/win/fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win/fs.c b/src/win/fs.c index 60e67a41..52290a9f 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -1048,6 +1048,8 @@ static void fs__sendfile(uv_fs_t* req) { } } + free(buf); + SET_REQ_RESULT(req, result); }