[SHELL32]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 20 Feb 2016 09:52:35 +0000 (09:52 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 20 Feb 2016 09:52:35 +0000 (09:52 +0000)
Don't leak memory when enumerating network places...

svn path=/trunk/; revision=70758

reactos/dll/win32/shell32/folders/CNetFolder.cpp

index d5e445c..f34b92a 100644 (file)
@@ -167,6 +167,7 @@ BOOL CNetFolderEnum::EnumerateRec(LPNETRESOURCE lpNet)
         }
     } while (dRet != WN_NO_MORE_ENTRIES);
 
+    CoTaskMemFree(lpRes);
     WNetCloseEnum(hEnum);
 
     TRACE("Done: %u\n", bRet);