Author: pschweitzer
Date: Sat Feb 20 09:52:35 2016
New Revision: 70758
URL:
http://svn.reactos.org/svn/reactos?rev=70758&view=rev
Log:
[SHELL32]
Don't leak memory when enumerating network places...
Modified:
trunk/reactos/dll/win32/shell32/folders/CNetFolder.cpp
Modified: trunk/reactos/dll/win32/shell32/folders/CNetFolder.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/folders/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/folders/CNetFolder.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/folders/CNetFolder.cpp [iso-8859-1] Sat Feb 20
09:52:35 2016
@@ -167,6 +167,7 @@
}
} while (dRet != WN_NO_MORE_ENTRIES);
+ CoTaskMemFree(lpRes);
WNetCloseEnum(hEnum);
TRACE("Done: %u\n", bRet);