Ticket #8167 (closed: fixed)
Memory leak in RemoteJobManager
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | minor | Milestone: | Release 3.0 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Peter Peterson |
Description
Running the ConfigService unit test through valgrind highlights a memory leak in the XML parsing done by the RemoteJobManager class.
Change History
comment:2 Changed 7 years ago by Russell Taylor
- Status changed from inprogress to verify
- Resolution set to fixed
Running valgrind on the ConfigServiceTest (N.B. must have tcmalloc turned off) shows that there is now zero memory leaked.
comment:3 Changed 7 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
comment:4 Changed 7 years ago by Peter Peterson
- Status changed from verifying to closed
Merge remote branch 'origin/feature/8167_remotejobmanager_memory_leak'
Full changeset: ad7c760723121f70d4386dda23bd807a48144392
Note: See
TracTickets for help on using
tickets.
Re #8167. Fix a memory leak.
Make sure the resources allocated by the Poco XML parsing are released. This is achieved by making sure release() is called on the object returned by getElementsByTagName(). Poco::AutoPtr does this on its destruction.
Changeset: 1e1cf4f51470e56bf0ae7d36ffacfe0dfbad38e5