Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
void lttng_rotation_handle_destroy(
struct lttng_rotation_handle *rotation_handle)
{
void lttng_rotation_handle_destroy(
struct lttng_rotation_handle *rotation_handle)
{
+ if (!rotation_handle) {
+ return;
+ }
lttng_trace_archive_location_destroy(rotation_handle->archive_location);
free(rotation_handle);
}
lttng_trace_archive_location_destroy(rotation_handle->archive_location);
free(rotation_handle);
}