rpcss: Fix a leak when TowerExplode() fails on endpoint insertion (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-05-22 21:44:48 +03:00 committed by Alexandre Julliard
parent a87c510e9a
commit 5b406f8963
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ void __cdecl ept_insert(handle_t h,
{
WINE_WARN("TowerExplode failed %u\n", rpc_status);
*status = rpc_status;
HeapFree(GetProcessHeap(), 0, entry);
break; /* FIXME: more cleanup? */
}