I get a Heap Leak every time that I use the --help switch or usage information is posted. If valid arguments are used, then there is no leak and everything runs fine. Also, I cannot create my own class to override version, failure, and usage messages as it always leads to a heap leak. I'm not sure what to do about this.
I found that this is happening when I call the isSet() method to test for which arguments were set due to using the xorAdd method. The weird part is that it detects the leak at this method call only when an invalid argument or --help or the like is specified. This occurs whether or not I specify my own output object.
If i specify my own output object and give it valid parameters, then a heap leak is detected on exit of the program.
Please use the bug-tracker for these kind of things.
This issue has now been resolved please see http://sourceforge.net/tracker/index.php?func=detail&aid=1662188&group_id=76645&atid=547806 for details.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.