Dmitry Timoshkov : adsldp: Fix a memory leak.
Alexandre Julliard
julliard at winehq.org
Thu Mar 26 16:27:25 CDT 2020
Module: wine
Branch: master
Commit: 381b1396b9330b45782daad5a5bc1f2652b91b12
URL: https://source.winehq.org/git/wine.git/?a=commit;h=381b1396b9330b45782daad5a5bc1f2652b91b12
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Thu Mar 26 15:08:54 2020 +0800
adsldp: Fix a memory leak.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/adsldp/adsldp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/adsldp/adsldp.c b/dlls/adsldp/adsldp.c
index 4957828391..76a3f285c4 100644
--- a/dlls/adsldp/adsldp.c
+++ b/dlls/adsldp/adsldp.c
@@ -1169,7 +1169,10 @@ static HRESULT WINAPI search_ExecuteSearch(IDirectorySearch *iface, LPWSTR filte
props = heap_alloc((count + 1) * sizeof(props[0]));
if (!props)
+ {
+ heap_free(ldap_ctx);
return E_OUTOFMEMORY;
+ }
for (i = 0; i < count; i++)
props[i] = names[i];
More information about the wine-cvs
mailing list