From ff88b914aa7e9febfae0d6819c082b0f7bf5cc44 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 17 May 2015 10:09:50 +0000 Subject: [PATCH] [SETUPAPI] Fix a memory leak svn path=/trunk/; revision=67804 --- reactos/dll/win32/setupapi/interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/dll/win32/setupapi/interface.c b/reactos/dll/win32/setupapi/interface.c index deaadd9a8cb..89e3d8d2992 100644 --- a/reactos/dll/win32/setupapi/interface.c +++ b/reactos/dll/win32/setupapi/interface.c @@ -586,6 +586,7 @@ SetupDiOpenDeviceInterfaceRegKey( Slash = wcsrchr(Path, '\\'); if (!Guid || !Slash) { + HeapFree(GetProcessHeap(), 0, Path); SetLastError(ERROR_INVALID_PARAMETER); return INVALID_HANDLE_VALUE; } -- 2.17.1