Closed
Bug 200971
Opened 23 years ago
Closed 23 years ago
nsConnectionEntry is leaked
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bryner, Assigned: bryner)
Details
(Keywords: memory-leak)
Attachments
(1 file)
|
584 bytes,
patch
|
dougt
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
From a valgrind run I did:
==16819== 56 bytes in 2 blocks are definitely lost in loss record 53 of 155
==16819== at 0x40044720: __builtin_new (vg_clientfuncs.c:125)
==16819== by 0x44ECF194:
nsHttpConnectionMgr::OnMsgNewTransaction(nsHttpTransaction *)
(/builds/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp:652)
==16819== by 0x44ECFAF0: nsHttpConnectionMgr::OnSocketEvent(unsigned int,
unsigned int, void *)
(/builds/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp:819)
==16819== by 0x44E8DA01: nsSocketTransportService::ServiceEventQ(void)
(/builds/mozilla/netwerk/base/src/nsSocketTransportService2.cpp:302)
==16819== by 0x44E8E8F5: nsSocketTransportService::Run(void)
(/builds/mozilla/netwerk/base/src/nsSocketTransportService2.cpp:606)
==16819== by 0x41CA31ED: nsThread::Main(void *)
(/builds/mozilla/xpcom/threads/nsThread.cpp:118)
==16819== by 0x4032DF6A: _pt_root
(/builds/mozilla/nsprpub/pr/src/pthreads/ptthread.c:214)
==16819== by 0x40344417: thread_wrapper (vg_libpthread.c:636)
==16819== by 0x40049470: do__apply_in_new_thread_bogusRA (vg_scheduler.c:2030)
This is also backed up by refcount logging which shows 3 leaked nsVoidArrays
(nsConnectionEntry contains 3 voidarrays).
It looks like we should be cleaning these up at shutdown; I'm not sure why that
isn't happening in this ase.
| Assignee | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Updated•23 years ago
|
Attachment #119634 -
Flags: superreview?(darin)
Attachment #119634 -
Flags: review?(dougt)
Comment 2•23 years ago
|
||
Comment on attachment 119634 [details] [diff] [review]
fix attempt
r= with sr=darin.
Attachment #119634 -
Flags: review?(dougt) → review+
Comment 3•23 years ago
|
||
Comment on attachment 119634 [details] [diff] [review]
fix attempt
sr=darin (thanks bryner!!)
Attachment #119634 -
Flags: superreview?(darin) → superreview+
Comment 5•23 years ago
|
||
Checking in nsHttpConnectionMgr.cpp;
/cvsroot/mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp,v <--
nsHttpConnectionMgr.cpp
new revision: 1.6; previous revision: 1.5
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•