From 1bca1e78206cdf7912815e80b03d78dfb8d57ee2 Mon Sep 17 00:00:00 2001 From: David PHAM-VAN Date: Tue, 28 Jun 2016 14:39:01 -0700 Subject: [PATCH] Fix Memory Leaks in Disp channel --- channels/disp/client/disp_main.c | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 channels/disp/client/disp_main.c diff --git a/channels/disp/client/disp_main.c b/channels/disp/client/disp_main.c old mode 100644 new mode 100755 index 0f67b7bba..637632c51 --- a/channels/disp/client/disp_main.c +++ b/channels/disp/client/disp_main.c @@ -5,6 +5,7 @@ * Copyright 2013 Marc-Andre Moreau * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger + * 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. @@ -317,6 +318,9 @@ static UINT disp_plugin_initialize(IWTSPlugin* pPlugin, IWTSVirtualChannelManage */ static UINT disp_plugin_terminated(IWTSPlugin* pPlugin) { + DISP_PLUGIN* disp = (DISP_PLUGIN*) pPlugin; + free(disp->listener_callback); + free(disp->iface.pInterface); free(pPlugin); return CHANNEL_RC_OK; }