Fix: rotation client example: leak of handle on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Jun 2021 19:08:21 +0000 (15:08 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Jul 2021 21:37:36 +0000 (17:37 -0400)
commita41134074c65a36cd818e22a99493b0be8199f36
tree087596aabb0b2c7d621dddbb4b39523a172df321
parentbb96c32c361c1e265068eb017d267a020dda61bb
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 <jeremie.galarneau@efficios.com>
Change-Id: I4c215ac4a86f9f70fd5c9d3aa13f944d3d7a2cc7
doc/examples/rotation/rotate-client-example.c
This page took 0.026133 seconds and 5 git commands to generate.