Bug 1214200: avoid double NS_RELEASE(), r=mcmanus
authorDaniel Stenberg <daniel@haxx.se>
Sat, 17 Oct 2015 08:26:38 -0400
changeset 268101 a62a3c113e4045bd00dbad6d27003ce7f76e2c1b
parent 268100 52f7eb6257e0769cd575c2e946360fdc3f29be26
child 268173 bb5c1f7cc07880689b5a8c95c3986d3ab82d060f
push id15736
push usermarkcapella@twcny.rr.com
push dateSat, 17 Oct 2015 12:26:46 +0000
treeherderfx-team@a62a3c113e40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1214200
milestone44.0a1
Bug 1214200: avoid double NS_RELEASE(), r=mcmanus
netwerk/base/nsProtocolProxyService.cpp
--- a/netwerk/base/nsProtocolProxyService.cpp
+++ b/netwerk/base/nsProtocolProxyService.cpp
@@ -2003,17 +2003,16 @@ nsProtocolProxyService::PruneProxyInfo(c
         EnableProxy(iter);
 
         last = iter;
         iter = iter->mNext;
     }
 
     if (allDisabled) {
         LOG(("All proxies are disabled, try a DIRECT rule!"));
-        NS_RELEASE(head);
         *list = nullptr;
         return;
     }
 
     // if only DIRECT was specified then return no proxy info, and we're done.
     if (head && !head->mNext && head->mType == kProxyType_DIRECT)
         NS_RELEASE(head);