Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316975 - [launcher] memory leak on failure to read launcher.ini file
Summary: [launcher] memory leak on failure to read launcher.ini file
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.6.1   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317195 322291
  Show dependency tree
 
Reported: 2010-06-15 16:54 EDT by Andrew Niefer CLA
Modified: 2010-08-10 17:07 EDT (History)
2 users (show)

See Also:
tjwatson: review+


Attachments
patch (1.85 KB, patch)
2010-06-15 16:55 EDT, Andrew Niefer CLA
no flags Details | Diff
patch v1 (1.85 KB, patch)
2010-06-15 18:09 EDT, Martin Oberhuber CLA
aniefer: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2010-06-15 16:54:01 EDT
If we fail to read the launcher.ini file for some reason (eg --launcher.ini with bad value), then we leak memory that was allocated as buffers.
Comment 1 Andrew Niefer CLA 2010-06-15 16:55:33 EDT
Created attachment 171994 [details]
patch

Patch extracted from bug 149994
Comment 2 Martin Oberhuber CLA 2010-06-15 18:09:04 EDT
Created attachment 172000 [details]
patch v1

Same patch by me for correct iplog+ tracking in case it gets committed.

I don't think the memory leak is too relevant and I can't quite see the value in splitting this out of the full patch on bug 149994, but here you go if you want to.
Comment 3 Andrew Niefer CLA 2010-06-16 10:46:16 EDT
I split this from the full patch because if 149994 is being considered for 3.6.1 it would be good to have the patch as focused as possible.  There is no reason this can't go in 3.6.1 as well, but I thought it would be better to have them separate.
Comment 4 Andrew Niefer CLA 2010-06-17 11:31:37 EDT
Comment on attachment 172000 [details]
patch v1

This patch was released to 3.7 head in bug 317195
Comment 5 Thomas Watson CLA 2010-08-10 14:23:22 EDT
+1 for 3.6.1.
Comment 6 Andrew Niefer CLA 2010-08-10 15:50:44 EDT
patch released to branch
Comment 7 Andrew Niefer CLA 2010-08-10 15:50:51 EDT
.