A memory leak issue occurs in the Audiodg.exe process when you play audio on a computer that is running Windows 7, Windows Server 2008 R2, Windows Vista or Windows Server 2008
You run a program that calls the PlaySound function to play a sound. However, a memory leak occurs in the Audiodg.exe process. To resolve this issue, you have to restart the Windows Audio service (Audiosrv). In this situation, other programs that depend on the service will be affected.
If you check the memory usage of the Audiodg.exe process, you find that the memory leak consumes several hundreds of bytes every time that the PlaySound function is called.
For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB981013.