From 4265177f9f6cd1d1f38f4f788789e9422ced0883 Mon Sep 17 00:00:00 2001 From: David PHAM-VAN Date: Tue, 28 Jun 2016 14:39:14 -0700 Subject: [PATCH] Fix Memory Leaks in RdpDR --- channels/rdpdr/client/rdpdr_main.c | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 channels/rdpdr/client/rdpdr_main.c diff --git a/channels/rdpdr/client/rdpdr_main.c b/channels/rdpdr/client/rdpdr_main.c old mode 100644 new mode 100755 index 5e5b619..2156961 --- a/channels/rdpdr/client/rdpdr_main.c +++ b/channels/rdpdr/client/rdpdr_main.c @@ -7,6 +7,7 @@ * Copyright 2015-2016 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger * Copyright 2016 Armin Novak + * Copyright 2016 David PHAM-VAN * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -890,6 +891,7 @@ out: if (error && rdpdr->rdpcontext) setChannelError(rdpdr->rdpcontext, error, "drive_hotplug_thread_func reported an error"); + CloseHandle(rdpdr->stopEvent); ExitThread((DWORD)error); return NULL; } -- 2.7.4