Closed Bug 1414947 Opened 7 years ago Closed 7 years ago

elfhack/elf.cpp:167 possible memory leak

Categories

(Firefox Build System :: General, defect)

56 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jeanluc.bonnafoux, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171024165158

Steps to reproduce:

Editing elf.cpp code, there is a possible memory leak at line 167.


Actual results:

if safety checks line 162 fails, then the shdr oject is not destroyed.


Expected results:

If safety check fails, shrd should be destroyed accordingly.
Component: Untriaged → Build Config
Product: Firefox → Core
Hello,

I would like to submit a patch proposal for this issue, who should be added as reviewer in Phabricator?

Thanks,
Maybe mike can answer your question
Flags: needinfo?(mh+mozilla)
Attachment #8929117 - Flags: review?(nfroyd)
Hello,

I have submitted a patch proposal using mozreview.
I am not used to this process, please do not hesitate to contact me if this needs to be re submitted.

Thanks,
Comment on attachment 8929117 [details]
Bug 1414947 - elfhack/elf.cpp:167 possible memory leak

We're throwing a runtime error, there's no need to delete things here.
Flags: needinfo?(mh+mozilla)
Attachment #8929117 - Flags: review?(nfroyd)
Thanks for the quick feedback.
I think that this case can be closed, there is no need to amend the source code.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: