mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 10:40:12 +00:00
Fix leak of nsConnectionCacheObj for FTP connections to nonexistant sites. r=valeski@netscape.com sr=brendan@mozilla.org b=58948
This commit is contained in:
parent
5dd72c255e
commit
d1939ea6d3
@ -315,6 +315,9 @@ nsFtpConnectionThread::Process() {
|
||||
mConn->mCwd = mCwd;
|
||||
rv = mConnCache->InsertConn(mCacheKey.GetBuffer(), mConn);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
} else {
|
||||
delete mConn;
|
||||
mConn = 0;
|
||||
}
|
||||
|
||||
rv = StopProcessing();
|
||||
|
Loading…
x
Reference in New Issue
Block a user