ctf: Fix leaking context in CtfTmfTrace.initTrace()
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 6 Aug 2015 14:30:25 +0000 (10:30 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 10 Aug 2015 20:28:11 +0000 (16:28 -0400)
commitdd5615b720feab03b3eab73986003eeef5f21071
treea2ae04dca81e80f97c343a2d9b08b6ee92ce0131
parent49698f83d53b1c99ff8cea7eb8b27066cfa30d3a
ctf: Fix leaking context in CtfTmfTrace.initTrace()

The context used to read the first event of the trace is never disposed.
Its trace reader is auto-closed after registering the event types.

This leaves the context with its closed trace reader in the iterator
manager. If the iterator manager becomes full, the trace reader can be
reused for another context but this will fail since it's been closed.

Change-Id: Iab224db1349d2ded5cb0f2d69b7b418a53e5eca0
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53332
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/trace/CtfTmfTrace.java
This page took 0.025327 seconds and 5 git commands to generate.