From: Jonathan Rajotte Date: Wed, 14 Nov 2018 19:38:37 +0000 (-0500) Subject: Fix: Initialize fd field of struct lttng_ust_elf to -1 at allocation X-Git-Tag: v2.11.0-rc2~1 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=79f31cc67981523044f55ab9aae8d7d8b06e3122;hp=79f31cc67981523044f55ab9aae8d7d8b06e3122;p=lttng-ust.git Fix: Initialize fd field of struct lttng_ust_elf to -1 at allocation In rare cases when the executable cannot be open, using a default value of zero lead to invalid close call and fd tracker removal. fixes #1171 Reported-by: Stefan Palade Signed-off-by: Jonathan Rajotte Signed-off-by: Mathieu Desnoyers ---