Closed
Bug 676184
Opened 13 years ago
Closed 13 years ago
memory leaks in xpcom/typelib/xpidl/xpidl_idl.c
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 608314
People
(Reporter: david.volgyes, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110622232440
Steps to reproduce:
I run cppcheck 1.49 and found several memory leak in the code.
Actual results:
xpcom/typelib/xpidl/xpidl_idl.c line 183:
memory is allocated with "realloc" for buffer, but if error happens, then this memory region is not freed.
(in original code:
if (ferror(inputfile))
return NULL;
)
Expected results:
Memory should be released with free().
I attached a proposed diff.
Reporter | ||
Comment 1•13 years ago
|
||
Actually, I have just noticed that someone else also reported this bug as #608314 in last December, but the bug is still unconfirmed. Someone who has write access to the code should handle one of the two bugs, and close them after.
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•