From f5f3913c1f34dd3252092a167c0946785296c87b Mon Sep 17 00:00:00 2001 From: David PHAM-VAN Date: Wed, 6 Jul 2016 12:12:40 -0700 Subject: [PATCH] Fix Memory Leaks in Printer Redirection --- channels/printer/client/printer_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/printer/client/printer_main.c b/channels/printer/client/printer_main.c index 8a8d14285..7b412c28f 100644 --- a/channels/printer/client/printer_main.c +++ b/channels/printer/client/printer_main.c @@ -6,6 +6,7 @@ * Copyright 2015 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. @@ -316,6 +317,7 @@ static UINT printer_free(DEVICE* device) printer_dev->printer->Free(printer_dev->printer); free(printer_dev->device.name); + Stream_Free(printer_dev->device.data, TRUE); free(printer_dev); return CHANNEL_RC_OK;