mpictor/StepClassLibrary — pull request #160 by davyw (2012-03-13 21:56:26+00:00)
Title: Review/memleak fixes fedex plus

Fixes a number of memory leaks reported by scl_memmgr.

I noticed that fixing this leaks improved fedex_plus performance from approx. 5 seconds to 2-3 seconds
for generating 203wseds on windows. Don't now if similar performance improvements will be noticed
on other platforms.

There are still some memory leaks left.
Some are related to dynamic allocated strings that are passed to the parser which are not destroyed accordingly, but these should be addressed once new parser is merged, since they may then be no longer valid? (lexact.c)
Others are in expressbuild.cc where some lists don't seem to get destroyed, this needs further investigation.

@tpaviot
Some of the changes made here might also be needed for fedex_python. I did not touch that code to prevent
conflicts with your changes.