Incorrect xpath evaluation error handling

Description

The CLibXpathContext evaluate methods contain potential memory leaks. Specifically, if evaluation succeeds but the result type is not the required type, the evaluated object memory will not be freed.

The CLibXpathContext evaluate methods use the incorrect path value when throwing exceptions. The currently empty context path, which is not the path being evaluated, is used.

The CEsdlCustomTransformChoose use of the xpath context evaluate methods contain memory leaks. IException instances thrown from the evaluate methods are caught by a generic handler and leaked. A side effect of this is that the actual failure reason, contained in the exception, is not available to be logged.

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Point

Fix versions

Pull Request URL

Created February 26, 2019 at 7:52 PM
Updated March 1, 2019 at 8:42 AM
Resolved March 1, 2019 at 8:41 AM