From bd3ef669f3d6dbf0ec21c53c2dc896892d46082c Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 24 Oct 2015 09:54:54 +0000 Subject: [PATCH] [SETUPAPI] Fix a memory leak CID 1250296 svn path=/trunk/; revision=69669 --- reactos/dll/win32/setupapi/devclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/dll/win32/setupapi/devclass.c b/reactos/dll/win32/setupapi/devclass.c index a8a9b666c77..1e2a734320b 100644 --- a/reactos/dll/win32/setupapi/devclass.c +++ b/reactos/dll/win32/setupapi/devclass.c @@ -552,6 +552,9 @@ cleanup: if (hKey != INVALID_HANDLE_VALUE) RegCloseKey(hKey); + if (Buffer && !ret) + MyFree(Buffer); + return ret; } -- 2.17.1