PRB: Cannot Free ResUtilGetEnvironmentWithNetName()Buffer
Article ID: 182660
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition
- Microsoft Windows NT Server 4.0 Enterprise Edition
This article was previously published under Q182660
SYMPTOMS
ResUtilGetEnvironmentWithNetName() allocates and returns a buffer. There is
no corresponding function to release the allocated memory.
CAUSE
The routine used to allocate the memory is an internal function, as is the
corresponding routine that is used to free the memory block.
RESOLUTION
You can avoid the problem by allocating the memory for the new environment
yourself and setting the _CLUSTER_NETWORK_NAME_ environment variable to the
network name associated with the resource.
See the REFERENCES section for more information on getting the current
environment and finding the network name for the resource.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
REFERENCES
GetClusterResourceNetworkName()
GetEnvironmentStrings()
Keywords: kbprb kbclustering kbpending KB182660