From 724bc7acd22e4345f0ed17507b9f5fd132297225 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Mon, 20 Aug 2018 09:50:43 +0200 Subject: [PATCH] winpr/io/device: Fix leak found by covscan leaked_storage: Variable "lpPipePath" going out of scope leaks the storage it points to. --- winpr/libwinpr/io/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/io/device.c b/winpr/libwinpr/io/device.c index e46e41be2..c1ce691af 100644 --- a/winpr/libwinpr/io/device.c +++ b/winpr/libwinpr/io/device.c @@ -106,7 +106,7 @@ char* GetDeviceFileUnixDomainSocketFilePathA(LPCSTR lpName) if (!lpFileName) { - free(lpFilePath); + free(lpPipePath); return NULL; }