From: Jérémie Galarneau Date: Wed, 16 Jun 2021 19:08:21 +0000 (-0400) Subject: Fix: rotation client example: leak of handle on error X-Git-Tag: v2.11.8~12 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=5144ff0ada9269fe941c3150c061fa5393926a23;hp=5144ff0ada9269fe941c3150c061fa5393926a23;p=lttng-tools.git Fix: rotation client example: leak of handle on error 1452927 Resource leak The system resource will not be reclaimed and reused, reducing the future availability of the resource. In setup_session: Leak of memory or pointers to system resources (CWE-404) CID 1452927 (#1 of 1): Resource leak (RESOURCE_LEAK)8. leaked_storage: Variable chan_handle going out of scope leaks the storage it points to Reported-by: Coverity Scan Signed-off-by: Jérémie Galarneau Change-Id: I4c215ac4a86f9f70fd5c9d3aa13f944d3d7a2cc7 ---