ctf: bug 471966: Fix file handle leak in CTF
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 6 Jul 2015 22:26:54 +0000 (18:26 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 7 Jul 2015 15:26:48 +0000 (11:26 -0400)
commit1ae2ec14818faa5df13d4d332919e5b07ef249d5
tree57702f1df1808b6e05c19cb5ba4376c55c77d103
parent7a0b1e3c9bb9d6d8b4d5753202f0c0b6753f60ea
ctf: bug 471966: Fix file handle leak in CTF

If something goes wrong in the CTFStreamInputReader constructor or one
of its calls, the file handles in this class are not closed. This is
because the object is not fully constructed yet therefore the caller of
the constructor cannot close it.

Change-Id: Ie03164888711dd49d7b30ce5d774b4e4cdef9228
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51426
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/ctf/core/trace/CTFStreamInputReader.java
This page took 0.025641 seconds and 5 git commands to generate.