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)
commit2431859f12cb59c937f7d91f93d15062565e8b8f
tree00e6aeb05e2c936e2b4a921e58536f70a94f4de8
parent9fde7203e6608f604218e69937f4fa8e20ac8459
Fix: fd-cache: fd leak on error path

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>
fd-cache/fd-cache.c
This page took 0.030733 seconds and 4 git commands to generate.