Merge lp://staging/~vanvugt/mir/fix-1295231 into lp://staging/mir
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Alan Griffiths |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1500 |
Proposed branch: | lp://staging/~vanvugt/mir/fix-1295231 |
Merge into: | lp://staging/mir |
Diff against target: |
39 lines (+16/-2) 2 files modified
src/client/mir_client_library.cpp (+11/-2) tests/acceptance-tests/test_protobuf.cpp (+5/-0) |
To merge this branch: | bzr merge lp://staging/~vanvugt/mir/fix-1295231 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Alan Griffiths | Approve | ||
Alexandros Frantzis (community) | Approve | ||
Review via email: mp+212367@code.staging.launchpad.net |
Commit message
Fix client memory leak that is causing sporadic CI test failures in and around
TestClientInput
The leak was a simple mistake in the client library. It was triggered by
DemoPrivateProtobuf tests being strangely racy (not fixed here). However
valgrind doesn't detect that as a leak until the next multi-process test
completes. So it would fail typically during TestClientInput.
To post a comment you must log in.
8 + // Use a unique_ptr to ensure connection gets deleted even if we have ptr<MirConnecti on> ptr(connection);
9 + // thrown an exception (LP: #1295231)
10 + std::unique_
This is the wrong place/way to fix the problem.
This code implements a C API and should not be propagating exceptions.