From 1a43baa3d15fdff55edbb35a3c9746293e3bb2c0 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 26 Feb 2008 12:52:59 +0000 Subject: [PATCH] fix a possible memory leak svn path=/trunk/; revision=32487 --- reactos/base/services/umpnpmgr/umpnpmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/base/services/umpnpmgr/umpnpmgr.c b/reactos/base/services/umpnpmgr/umpnpmgr.c index b09b23e4eef..af76eb533cc 100644 --- a/reactos/base/services/umpnpmgr/umpnpmgr.c +++ b/reactos/base/services/umpnpmgr/umpnpmgr.c @@ -1740,7 +1740,8 @@ PnpEventThread(LPVOID lpParameter) if (Status == STATUS_BUFFER_TOO_SMALL) { PnpEventSize += 0x400; - PnpEvent = HeapReAlloc(GetProcessHeap(), 0, PnpEvent, PnpEventSize); + HeapFree(GetProcessHeap(), 0, PnpEvent); + PnpEvent = HeapAlloc(GetProcessHeap(), 0, PnpEventSize); if (PnpEvent == NULL) return ERROR_OUTOFMEMORY; continue;