Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Memory leak in NETAPI32.DLL module when an application calls some functions


View products that this article applies to.

Symptoms

Consider this scenario:
  • You develop an application that calls the WNetAddConnection2 function and the WNetCancelConnection2 function. This application enables you to connect and to disconnect the network drive to other computers that have a drive letter.
  • You run this application on a computer that is running Windows Vista or Windows Server 2008.
In this scenario,you find a memory leak in NETAPI32.DLL module. There is about 1KB of memory leak every time that you connect or disconnect. Therefore, system performance decreases gradually over time.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:
  • Windows Vista Service Pack 1 (SP1)
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008
  • Windows Server 2008 SP2
For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:
935791� How to obtain the latest Windows Vista service pack
For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:
968849� How to obtain the latest service pack for Windows Server 2008

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Windows Vista and Windows Server 2008 file information notes
Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.
  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.
    Collapse this tableExpand this table
    VersionProductSR_LevelService branch
    6.0.600 1 . 22xxxWindows Vista and Windows Server 2008SP1LDR
    6.0.600 2 . 22xxxWindows Vista and Windows Server 2008SP2LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008. Therefore, RTM milestone files apply only to Windows Vista. RTM milestone files have a 6.0.0000.xxxxx version number.
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntlanman.dll6.0.6001.2265363,48811-Mar-201016:39x86
Ntlanman.dll6.0.6002.2236064,00011-Mar-201016:51x86
For all supported x64-based versions of Windows Server 2008 and of Windows Vista
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntlanman.dll6.0.6001.22653118,78411-Mar-201017:10x64
Ntlanman.dll6.0.6002.22360118,27211-Mar-201019:04x64
For all supported IA-64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ntlanman.dll6.0.6001.22653185,34411-Mar-201016:53IA-64
Ntlanman.dll6.0.6002.22360185,34411-Mar-201018:37IA-64

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about the WNetAddConnection2 Function, visit the following Microsoft Web site:
General information about the WNetAddConnection2 Function
For more information about the WNetCancelConnection2 Function, visit the following Microsoft Web site:
General information about the WNetCancelConnection2 Function
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684� Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008
Collapse this tableExpand this table
File nameX86_0119fa515454dede3c380ca932c57e5d_31bf3856ad364e35_6.0.6001.22653_none_e4c59d11e4214f2e.manifest
File version
File size696
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameX86_85c054e544c81a0eccfb6b159533a0e3_31bf3856ad364e35_6.0.6002.22360_none_82c3954e4f78f544.manifest
File version
File size696
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameX86_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6001.22653_none_3067ad4ffbe38996.manifest
File version
File size6,753
Date (UTC)11-Mar-2010
Time (UTC)18:43
PlatformNot Applicable
File nameX86_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6002.22360_none_32404e6df914aea6.manifest
File version
File size6,753
Date (UTC)11-Mar-2010
Time (UTC)18:35
PlatformNot Applicable
Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008
Collapse this tableExpand this table
File nameAmd64_53d940175bfb122828215205283173e4_31bf3856ad364e35_6.0.6001.22653_none_2ff086024c831c39.manifest
File version
File size1,040
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameAmd64_c492a76e43246d939f6e11a3159002f0_31bf3856ad364e35_6.0.6001.22653_none_9320db7e41258b79.manifest
File version
File size700
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameAmd64_e24efc21cf81dd7798a69f7f33608a28_31bf3856ad364e35_6.0.6002.22360_none_9ee3d9c0fe86a2f7.manifest
File version
File size1,040
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameAmd64_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6001.22653_none_8c8648d3b440facc.manifest
File version
File size6,779
Date (UTC)11-Mar-2010
Time (UTC)19:17
PlatformNot Applicable
File nameAmd64_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6002.22360_none_8e5ee9f1b1721fdc.manifest
File version
File size6,779
Date (UTC)11-Mar-2010
Time (UTC)20:51
PlatformNot Applicable
Additional files for all supported IA-64-based versions of Windows Server 2008
Collapse this tableExpand this table
File nameIa64_071e69bd31aac1157c5106919abc0bf9_31bf3856ad364e35_6.0.6001.22653_none_ba636391f02849d6.manifest
File version
File size1,038
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameIa64_1431dd603000fd0fc1d3725a75f2219f_31bf3856ad364e35_6.0.6001.22653_none_ff4091c675078f3a.manifest
File version
File size698
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameIa64_4f8225bbb880bbfdfd38234039416574_31bf3856ad364e35_6.0.6002.22360_none_a436476e351524b0.manifest
File version
File size1,038
Date (UTC)12-Mar-2010
Time (UTC)01:33
PlatformNot Applicable
File nameIa64_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6001.22653_none_30695145fbe19292.manifest
File version
File size6,766
Date (UTC)11-Mar-2010
Time (UTC)18:57
PlatformNot Applicable
File nameIa64_microsoft-windows-ntlanman_31bf3856ad364e35_6.0.6002.22360_none_3241f263f912b7a2.manifest
File version
File size6,766
Date (UTC)11-Mar-2010
Time (UTC)20:06
PlatformNot Applicable

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbsurveynew, kbautohotfix, kbexpertiseinter, kbbug, kbfix, KB981062

↑ Back to the top

Article Info
Article ID : 981062
Revision : 1
Created on : 4/14/2010
Published on : 4/14/2010
Exists online : False
Views : 683