mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1517600 - Call ReleaseListeners() in HttpChannelChild::AsyncOpen when NS_CheckPortSafety fails r=baku
The big leak was caused by not clearing mCallbacks. Differential Revision: https://phabricator.services.mozilla.com/D17220 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
70df5bbf20
commit
a9b850e10e
@ -2444,7 +2444,10 @@ HttpChannelChild::AsyncOpen(nsIStreamListener* listener,
|
||||
// immediately
|
||||
nsresult rv;
|
||||
rv = NS_CheckPortSafety(mURI);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (NS_FAILED(rv)) {
|
||||
ReleaseListeners();
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsAutoCString cookie;
|
||||
if (NS_SUCCEEDED(mRequestHead.GetHeader(nsHttp::Cookie, cookie))) {
|
||||
|
Loading…
Reference in New Issue
Block a user