From: Jérémie Galarneau Date: Thu, 30 Aug 2018 19:36:38 +0000 (-0400) Subject: Fix: unchecked writer open element return value X-Git-Tag: v2.11.0-rc1~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f829d17ad1141d0fb130edc1aa26d446ffed146b;p=lttng-tools.git Fix: unchecked writer open element return value Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index e57f0e03a..8daf870c2 100644 --- a/src/bin/lttng-sessiond/save.c +++ b/src/bin/lttng-sessiond/save.c @@ -2245,6 +2245,9 @@ int save_session_rotation_schedules(struct config_writer *writer, ret = config_writer_open_element(writer, config_element_rotation_schedules); + if (ret) { + goto end; + } if (session->rotate_timer_period) { ret = save_session_rotation_schedule(writer, LTTNG_ROTATION_SCHEDULE_TYPE_PERIODIC,