The calls to OpenSCManager and OpenServiceW in netwerk/base/src/nsAutodialWin.cpp return service handles. Those handles should be closed but are never being closed.
Created attachment 584988 [details] [diff] [review] Leak fix. Patch v1. Service handles were not being closed on any return path. I'll land this after bug 481815 lands which defines nsAutoServiceHandle (an RAII class for ensuring service handles are closed).
Created attachment 584990 [details] [diff] [review] Leak fix. Patch v2. Just fixed whitespace.
6 years ago
Pushed to mozilla-inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/1cc0885caf02