Check return value of cds_lfht_destroy
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 4 Apr 2018 16:20:28 +0000 (12:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Apr 2018 18:14:54 +0000 (14:14 -0400)
Bubbling up the error is not an option here. Print and error an move on.

CID 1388096:  Error handling issues  (CHECKED_RETURN)

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng-sessiond/notification-thread-events.c

index 6a7477aff44a165d1cb5d763526aea8498fde2f8..fe2d0826b8954db180a005b2edcb4e7c8251055b 100644 (file)
@@ -397,10 +397,14 @@ static
 void session_info_destroy(void *_data)
 {
        struct session_info *session_info = _data;
+       int ret;
 
        assert(session_info);
        if (session_info->channel_infos_ht) {
-               cds_lfht_destroy(session_info->channel_infos_ht, NULL);
+               ret = cds_lfht_destroy(session_info->channel_infos_ht, NULL);
+               if (ret) {
+                       ERR("Channel information hash table destroy");
+               }
        }
        free(session_info->name);
        free(session_info);
This page took 0.026588 seconds and 4 git commands to generate.