Commit 381b1396 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

adsldp: Fix a memory leak.

parent f803da49
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment