Nikolay Sivov : ntdll: Release buffer when it won't be referenced.
Alexandre Julliard
julliard at winehq.org
Fri Jan 8 10:28:57 CST 2010
Module: wine
Branch: master
Commit: f9b41a7983e7a2696e2a902f608619f98f4fc4d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9b41a7983e7a2696e2a902f608619f98f4fc4d4
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri Jan 8 18:07:12 2010 +0300
ntdll: Release buffer when it won't be referenced.
---
dlls/ntdll/path.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c
index 66d7b7a..8b62a3a 100644
--- a/dlls/ntdll/path.c
+++ b/dlls/ntdll/path.c
@@ -662,9 +662,11 @@ static ULONG get_full_path_helper(LPCWSTR name, LPWSTR buffer, ULONG size)
tmp[1] = ':';
tmp[2] = '\\';
ins_str = tmp;
+ RtlFreeHeap(GetProcessHeap(), 0, val.Buffer);
break;
default:
ERR("Unsupported status code\n");
+ RtlFreeHeap(GetProcessHeap(), 0, val.Buffer);
break;
}
mark = 3;
More information about the wine-cvs
mailing list