Fix: fd-cache: fd leak on error path
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 6 May 2019 18:14:39 +0000 (14:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 7 May 2019 17:22:37 +0000 (13:22 -0400)
Fixes coverity #1401248

  CID 1401248 (#1 of 1): Resource leak (RESOURCE_LEAK)
  10. leaked_handle: Handle variable fd going out of scope leaks the handle.

Reported-by: Coverity (1401248) Resource leak
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I41662edaa4ff13046e003aec20ac27ff242e338f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1260
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025687 seconds and 4 git commands to generate.