Fixed memory leaks.
Fixed two memory leaks:
- AnalysisData leaked memory if startData() was called more than once.
- Memory for the error collector object in selection parser was not
properly managed. Now the object is no longer dynamically allocated,
which is much cleaner.
Also added a call to xmlCleanupParser() at the end of tests to remove
static memory allocated by libxml2 from, e.g., valgrind reports.
Also added suppressions for legacy and external library code.
Change-Id: I3ec213b6441d38f46bda138c959dbb5990144027
12 files changed: