Closed
Bug 9860
Opened 25 years ago
Closed 25 years ago
[malloc] memory allocation problems - silentdl
Categories
(SeaMonkey :: Installer, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: chofmann, Assigned: dougt)
References
Details
[malloc] memory allocation problems - silentdl check bug 8227 for more details on what needs to be done to this code s:/mozilla/silentdl/nsSilentDownload.cpp Deref-error: "outFileLocation", line 159 Deref-error: "outFileLocation", line 163 Deref-error: "outFileLocation", line 166
Updated•25 years ago
|
Assignee: dveditz → dougt
Comment 1•25 years ago
|
||
Reassigning to Doug, this is his area. But I think this feature has been pulled for Seamonkey. Do we leave the code in the tree so it doesn't bitrot, turn it off so it won't keep showing up when people run purify-like tools, or fix the leak now?
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•25 years ago
|
||
it is a simple fix to avoid these warning. In fact, I am not really sure why these would be reported as error. Here is the diff which should fix these messages: Index: nsSilentDownload.cpp =================================================================== RCS file: /cvsroot/mozilla/silentdl/nsSilentDownload.cpp,v retrieving revision 1.16 diff -c -4 -r1.16 nsSilentDownload.cpp *** nsSilentDownload.cpp 1999/05/10 05:34:24 1.16 --- nsSilentDownload.cpp 1999/07/14 20:17:14 *************** *** 144,171 **** nsFileSpec * CreateOutFileLocation(const nsString& url, const nsString& directory) { ! nsSpecialSystemDirectory *outFileLocation = ! new nsSpecialSystemDirectory(nsSpecialSystemDirectory::OS_CurrentProcessDirectory); - //*outFileLocation += directory; - PRInt32 result = url.RFind('/'); if (result != -1) { nsString fileName; url.Right(fileName, (url.Length() - result) ); ! *outFileLocation += fileName; } else { ! *outFileLocation += "sdl"; } ! outFileLocation->MakeUnique(); ! return outFileLocation; } --- 144,168 ---- nsFileSpec * CreateOutFileLocation(const nsString& url, const nsString& directory) { ! nsSpecialSystemDirectory outFileLocation(nsSpecialSystemDirectory::OS_CurrentProcessDirectory); PRInt32 result = url.RFind('/'); if (result != -1) { nsString fileName; url.Right(fileName, (url.Length() - result) ); ! outFileLocation += fileName; } else { ! outFileLocation += "sdl"; } ! outFileLocation.MakeUnique(); ! return new nsSpecialSystemDirectory(outFileLocation); } I will check it in when the tree opens.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•25 years ago
|
||
this has been checked in. I am closing 9860.
Bulk move from Silent Download (this component to be deleted) to Installer.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•